UserInputService - Roblox Advanced Scripting #13 (2023)

Поділитися
Вставка
  • Опубліковано 30 лис 2024

КОМЕНТАРІ • 46

  • @BrawlDevRBLX
    @BrawlDevRBLX  10 місяців тому +43

    I just realized tick() is a deprecated feature, meaning it isn't recommended for future work. It's better to use os.time() or os.clock() instead. I will make a future video on keeping track of time using these.

    • @DrFerdy
      @DrFerdy 5 місяців тому +5

      please pin this comment instead of letting it flood

  • @jomprobepro1724
    @jomprobepro1724 5 місяців тому +15

    i get distracted really easily when i cant understand something, but the way you explain everything makes it soo much easier for me to understand, you an actual goat bro

    • @2gullyy
      @2gullyy Місяць тому +1

      this guy has the best series ive seen on scripting, its a shame he doesnt go super in depth into the topics

  • @CrookFedora
    @CrookFedora 11 місяців тому +5

    Very nice tutorial and watch all the way to the end! But on 24:16 you could also press a different key then press W in less than 0.2 seconds and it will still print

    • @BrawlDevRBLX
      @BrawlDevRBLX  11 місяців тому

      That's true! There are definitely a lot of possibilities when it comes to key presses, that's for sure.

    • @sm3llyfritz58
      @sm3llyfritz58 4 місяці тому

      @@BrawlDevRBLX I have a question how would I make it so if a player is on PC then a Icon would appear above their head with a pc logo and everyone whose in the game can see that the players playing on pc or on mobile I want this applied for PC and mobile

    • @Novelty777
      @Novelty777 3 місяці тому

      ​@@sm3llyfritz58Mostly you have to detect the device first then depending on what platform he is using, you can add a UI on his character

  • @bramvenhorst2028
    @bramvenhorst2028 11 місяців тому

    Actually needed this for the gamejam XD

  • @Hectorien_
    @Hectorien_ 11 місяців тому

    This was something I needed to get more familiar with so... Thank you I guess

  • @rajneshkumar2588
    @rajneshkumar2588 Місяць тому

    bro,s introduction is always funnnnyyyy

  • @gregor-x8y
    @gregor-x8y 3 місяці тому +2

    MADE IN HEAVEN "ahh intro"

  • @ChernPlayz
    @ChernPlayz 11 місяців тому +1

    What's the difference between Starter Character VS Player Script?

    • @BrawlDevRBLX
      @BrawlDevRBLX  11 місяців тому +4

      Starter Character Scripts:
      The scripts that will be on your physical roblox character in Workspace. This is useful for scripts that use your character even after they reset/die.
      Starter Player Scripts:
      The scripts that will be on your player in game.Players. This is useful for scripts that use your player.

  • @ItsFootball-CR7
    @ItsFootball-CR7 Місяць тому +1

    15:56 what if there is a device like a laptop which has a touchscreen? Then it will still identify it as a mobile device or it will not?

  • @abenex2175
    @abenex2175 8 місяців тому

    ur an actual goat

  • @AnonymousRBLX
    @AnonymousRBLX 5 місяців тому

    Another amazing video by BrawlDev; Thank you so much for this guide.

  • @fearfulemoji
    @fearfulemoji 11 місяців тому

    Enum.KeyCode can be used for controllers too

    • @fearfulemoji
      @fearfulemoji 11 місяців тому

      you just need to type ButtonA for example

    • @BrawlDevRBLX
      @BrawlDevRBLX  11 місяців тому +1

      I just looked into it and yes, you're correct. My apologies on that mistake.

  • @Doom_exe2
    @Doom_exe2 2 місяці тому

    What's the difference between "If isJumping == false then" and "If not isJumping then", or is it the same?

  • @dannagarcia3097
    @dannagarcia3097 9 місяців тому

    I made an enum code of .touch, so that when mobile players tap the screen they activate their tool, but it's being activated even when they tap just to move their mobile camera instead of shortly taping to activate the tool, how can i fix this?😢

    • @Kaizagidora
      @Kaizagidora 8 місяців тому +1

      Don’t think you can fix that as players can click really quick to turn cameras or if they want to get precise stuff. If what I read is true the thing actives when the player touches the screen if I were you I would make it when they touch a button on the screen instead of just the screen

  • @MrxDerpReal
    @MrxDerpReal 5 місяців тому

    the start of the video: MADE IN HEAVEN!!

  • @lolaswift111
    @lolaswift111 7 місяців тому

    thank you

  • @amazonbox1115
    @amazonbox1115 3 місяці тому

    Any possible way to stop input until a function is finished?

  • @gamingmagnet238
    @gamingmagnet238 28 днів тому

    This might sound a little dumb, but what is the difference between "If true do" and "If true then?"

    • @GamingWithAro
      @GamingWithAro 16 днів тому

      i'm pretty sure in lua there is no such thing as if true then, so just use if true do.

    • @gamingmagnet238
      @gamingmagnet238 16 днів тому +1

      @@GamingWithAro thx

  • @DanteYT-cp5zj
    @DanteYT-cp5zj 3 місяці тому

    hey brawldev am trying to trigger a run by pressing Double tap W but the inputEnd cancels the run just when I let go of W got any way of me Double tap W and then hold till I let go then the runs stop plsssssss help meeee 🙏🙏🙏🙏

    • @dvmstudioo
      @dvmstudioo 5 днів тому

      Make an counter, like "local Count = 0" and make so if player clicks W it will add +1to counter, wait 2 secs and reset the counter. And if counter is 2 AND the w is pressed, it will run the dash func

    • @dvmstudioo
      @dvmstudioo 5 днів тому

      Make an counter, like "local Count = 0" and make so if player clicks W it will add +1to counter, wait 2 secs and reset the counter. And if counter is 2 AND the w is pressed, it will run the dash func

  • @joker_7125
    @joker_7125 2 місяці тому

    I LOVE U BRO

  • @llYuki0okami
    @llYuki0okami 2 місяці тому

    24:08 u need also save last pressed key and here check if it was W

  • @ViệtLâmHoàng-q7v
    @ViệtLâmHoàng-q7v 20 днів тому

    why I cant print in a loacal script

  • @frdontdothis6330
    @frdontdothis6330 26 днів тому

    W examples

  • @bladethesniper
    @bladethesniper 10 днів тому

    Made in heaven ahh:

  • @Ethemetald
    @Ethemetald 3 місяці тому

    MAIDO IN HEAVEN

  • @Its_TTony
    @Its_TTony Місяць тому

    00:13 do not pronounce God's name in vain
    If you're a christian you should not say things like Oh my God.

  • @bramvenhorst2028
    @bramvenhorst2028 11 місяців тому

    first (:

  • @𠮟
    @𠮟 4 місяці тому

    local UserInputService = game:GetService("UserInputService")
    local music = game.SoundService.NoSmoking
    local musicPlaying = true
    UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
    if gameProcessedEvent then
    return
    end
    if input.KeyCode == Enum.KeyCode.M then
    if musicPlaying then
    music.Playing = false
    musicPlaying = false
    print("muted")
    else
    music.Playing = true
    musicPlaying = true
    print("unmuted")
    end
    end
    end)