How to make Shift To Run - Setting up Keybinds in Studio

Поділитися
Вставка
  • Опубліковано 7 чер 2024
  • MERCH ► shop.gnome.codes/
    DISCORD ► / discord
    TWITCH ► / gnomecode
    TWITTER ► / gnomecoderblx
    WEBSITE ► gnome.codes/
    TIMESTAMPS ►
    0:00 Intro
    0:22 Detecting player input
    2:17 Guard clauses
    2:38 Setting runspeed
    3:53 Check ShiftLock
    4:14 Toggling sprint
    5:27 Press and hold
    7:53 Outro

КОМЕНТАРІ • 129

  • @JasyPlayStuff
    @JasyPlayStuff 9 місяців тому +8

    YOUR THE ONLY PERSON WHO ACTUALLY MAKES SENSE, LIKE YOU NEVER RUSH THROUGH THINGS AND THATS REALLY AMAZING!!!

  • @pMaiaa
    @pMaiaa 9 місяців тому +16

    Great video! You should make a part 2 adding a stamina bar!

    • @MoneyCool-tc1mu
      @MoneyCool-tc1mu 8 місяців тому +2

      you can sample code from a health bar tutorial then, create an attribute or number value inside the players character to create the stamina bar (hope this helped)

  • @joseph32323
    @joseph32323 9 місяців тому +13

    this is the exact tutorial I was waiting for! Keep the great work up 👍

  • @user-hw9cx2eq5z
    @user-hw9cx2eq5z 9 місяців тому +8

    Hey, Gnome! I've been making my own tower defense game using your tutorials, and have learned enough just from those tutorials to add my own mechanics to the towers. I just wanna say thanks alot!

  • @drkrok9399
    @drkrok9399 9 місяців тому +12

    Keep the work up brother, I always have a good time watching your videos 👍

    • @GnomeCode
      @GnomeCode  9 місяців тому +6

      Thanks for the good vibes!

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

    Keep the work! I learned so much from you and dont want to stop!

  • @itstehgamer
    @itstehgamer 9 місяців тому +4

    i'm so happy you uploaded again, you and this channel are a godsend during development especially when you have read most of the docs and still don't know much

  • @Rad_Pie
    @Rad_Pie 9 місяців тому +2

    i was just looking for a tutorial like this you are AMAZING!

  • @roboriley
    @roboriley 9 місяців тому +4

    Been making some fun random scripts because I can, and your channel's taught me SO much. Thank you kindly ^^

  • @SentryGaming275
    @SentryGaming275 9 місяців тому +2

    Nice tutorial, really helped me!

  • @pneum7932
    @pneum7932 9 місяців тому +1

    YESSS IVE BEEN WAITING FOR THIS TUTORIAL TYTSM

  • @ThatoneLuacoder
    @ThatoneLuacoder 9 місяців тому +1

    When I didn’t have a PC, I watched your TDS videos because I was so interested in coding a game! I’m now working on building a brand new TDS game and most of my inspiration came from you. I might use use this for the sprinting mechanic in the game.

  • @NoodlesYT-jy3db
    @NoodlesYT-jy3db 4 місяці тому

    You are the best gnome EVER!! I've always needed to know this and you explain everything clearly. thank you for making these good videos. Keep up the good work!

  • @user-dw3fp2lr6c
    @user-dw3fp2lr6c 9 місяців тому +1

    This guy inspires me he started making games in 2012 I started 2022 I want to script so badly he wanted to this guy is the best

  • @wexzy4037
    @wexzy4037 9 місяців тому +2

    Keep the work up! Can you make a tutorial on how to add dash that drains stamina while using

  • @plupos
    @plupos 9 місяців тому +1

    finally a tutorial that shows basics of keybind. True legend

  • @jaspurg8573
    @jaspurg8573 9 місяців тому +2

    Hey gnome code. I have a pretty cool tutorial series idea for you, and I do not expect you to actually do it, but if you wish to do one then i guess this would be an option.
    So basically, generation using perlin noise, I'm making a game inspired by minecraft, and to generate terrain, i use perlin noise. Chunks, mining, building etc.
    It would be great if you could do a tutorial series featuring just how to make all of these: terrain generation using perlin noise, chunk system, mining, building, biomes and structures etc.

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

    Amazing Gnome Coder

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

    keep up the good work!!

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

    Awesome video!

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

    Love this tut

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

    Good tutorial, is really useful ty

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

    its always a good day when gnomecode uploads

  • @TheAnimators1811
    @TheAnimators1811 9 місяців тому +1

    thank you for this

  • @dr_ned_flanders
    @dr_ned_flanders 9 місяців тому +2

    As we develop games on a computer we tend to concentrate this as the default device type but with the majority of players of Roblox games on tablets, phones and consoles there is a move away from keybinds to using the ContextActionService. I would be interested in a tutorial about how to makie the games you write playable on multiple devices without significantly compromising the game play.

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

    about time! thanks!

  • @12Duckz
    @12Duckz 9 місяців тому +1

    crazy crazy video, i can finally run, ive never felt so fast in my life. thank you gnome!!!!!1!!1211!!

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

    Amazing video gnomecode your content is the best I was wondering if you can explain like the badge award system

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

    Nice tutorial,Keep it up.

  • @konkoloziYT
    @konkoloziYT 9 місяців тому +1

    You are the only quality Roblox studio UA-cam channel which uploads very frequently and explains everything really in nicely ❤❤

  • @DKKian
    @DKKian 9 місяців тому +1

    Awesome video as always!

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

    Gnome code I love you ❤

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

    Thank you!

  • @grapplerchaos
    @grapplerchaos 9 місяців тому +1

    tysm!

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

    I cant imagine the hard work you put in these videos and you dont even have 100k subs yet i hope you get 1m end of the year🎉❤

  • @fortniteog_yt8039
    @fortniteog_yt8039 9 місяців тому +1

    ❤good video gnome

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

    yay new upload

  • @nowayback.4490
    @nowayback.4490 9 місяців тому +1

    Hello gnome,can you make advanced tools series or something about tools in general?

  • @Bub3ns
    @Bub3ns 9 місяців тому +1

    Ty 🥰

  • @Daani_Duarte
    @Daani_Duarte 9 місяців тому +1

    Hey there gnome, i really enjoy your content :D ! Could you explain why didnt you use context action service? Isnt it better? Please correct me if im wrong!

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

    legend

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

    just commenting for the algorithm lol. More ppl needs to see this

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

    gnomes 🔛🔝

  • @bojaidin
    @bojaidin 9 місяців тому +1

    Could you make a video on Script RunContext? for some reason I have trouble understanding it and you teach in a way thats easier for me
    Thank you!

  • @PizzaMoose
    @PizzaMoose 9 місяців тому +1

    Awesome tutorial as always! Can you teach us how to make a game like Roblox Bedwars? It doesn’t have to be super complicated, but stuff like combat system, map gen, and rounds would be super cool!

  • @ROLL50-Offical1
    @ROLL50-Offical1 9 місяців тому

    I learned coding on your chanel, thanks :D

  • @thatbreadydogyt3758
    @thatbreadydogyt3758 9 місяців тому +1

    Hello gnomecode, can you make a tutorial on how to select your in-game keybinds? It would help a lot

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

    also You're amazing!!!

  • @jsnotlout3312
    @jsnotlout3312 9 місяців тому +1

    Very good tutorial! This is a helpful skill for new scripters! Pay attention to the master Gnome guys

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

    Hello Gnome! Can you make a tutorial on the truck system? Thanks!

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

    Love your video's
    But can you do a collectable chest like in most simulator games that has a timer before spawning back in

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

    hey gnomecode when are you going to continue on your doors series?

  • @user-cj7wh7wc4d
    @user-cj7wh7wc4d 9 місяців тому

    It would be amazing if you remade the tower defense tutorial

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

    Hey Gnome!! I was just wondering when the next GnomeJam was? I’ve really enjoyed the previous ones and I’m looking forward to the next. I was just wondering if it’d be soon because most people are on their summer break 👍

    • @GnomeCode
      @GnomeCode  9 місяців тому +3

      Hey Pineblox, sorry to disappoint but there probably won't be another gamejam till halloween or christmas.

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

      Ah that’s ok! Keep up the good videos 👍

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

    i want the doors series back.. its been so long, but epic vid

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

    As someone who HATES shift to run, how would you do a double tap system that continues running when you press the other movement keys? I've got a general system going but it's rather confusing and while it works, it feels like spaghetti code even to me.

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

    What if you wanted a gui to be responsive to the keybind, as in lets say you have an ability to attack someone, and when you press it, the gui is responsive to the attack, showing a cooldown and what not?

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

    So RunService is for running, i get it now!

  • @aqaisback9517
    @aqaisback9517 9 місяців тому +1

    How do I make a sword with working animations?

  • @CGamePro
    @CGamePro 9 місяців тому +1

    GnomeCode i got a vid idea for the tds game, could you make a vid about some small updates like a some advanced things kinda like a tower that shoots 5 times and then reloads for a sec

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

    Hi, could you make another OOP video? You made it so awsome!

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

      Sure, I could do. I mostly avoided mentioning inheritance in my last video. Is there anything specific you're wanting to know about?

    • @maxenbest_lol0153
      @maxenbest_lol0153 9 місяців тому +1

      @GnomeCode Um. yeah maybe more info about when use OOP and how to use it in correct way maybe. I'm not understating it quite well. youre videos are helping me out im really thank to you :))

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

    Can you do a Crouch Script with the camera lowering while u crouch i made my own but it doesnt work with ur run/footsteps script

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

    nice

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

    Can your next tutorial being making a UI Button for toggle running on mobile and a keybind for xbox?

  • @CamilleJohnson-zu3rd
    @CamilleJohnson-zu3rd 9 місяців тому

    Code helps😀😀

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

    i made it play an animtion by using
    humanoid.Running:Connect(function(speed)
    if speed > 16 then
    runanim:Play(0.5,1,1.5)
    end)
    but the animation keeps stuttering can u pls help me so it when i run it has smooth animation and it only play at a curtain speed like i typed above.

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

    help, if I have few elevators and there are few teleports out it choosing random teleport out and always teleport to it, no matter what elevator I use
    I used your tutorial

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

    That would be awesome if you’d make tutorials on how to make a tycoon game

  • @creatorrea_lyrics
    @creatorrea_lyrics 9 місяців тому +2

    Hello gnome. Can you please make series like "how to make a game like bee swarm simulator"?

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

    @GnomeCode Are you gonna do another doors video

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

    where is the rest of the doors tutorials?
    s

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

    also can u pls redo the tower defense series pls my zombie wont move

  • @mcall5554
    @mcall5554 9 місяців тому +2

    How about a car chassis? I would like some help with it please.

    • @GnomeCode
      @GnomeCode  9 місяців тому +4

      I'd recommend watching Suphi Kaners video ua-cam.com/video/FVOowr2DXbM/v-deo.html

    • @mcall5554
      @mcall5554 9 місяців тому +1

      oh thanks this helps alot! @@GnomeCode

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

    Gnomecode, Video Idea: how to add daily rewards to teddy game so players can come back and get pieces or dice after playing each day

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

    can you make a tutorial for bee swarm simulator

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

    Hello gnome 🙃 can you make a video about webhooks in roblox?

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

    Gnome pls continue the doors series

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

    I can now sprint.

  • @mister.eparty232
    @mister.eparty232 9 місяців тому

    Can you make an updated gnomes tower defense tutorial? Roblox studio updated and made A lot of the tutorials not working. I can’t even get passed episode 2. Thank you 🙏

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

    TUTORIAL IDEA: HOW TO MAKE A GAME LIKE DINGUS

  • @nuclear_monster
    @nuclear_monster 9 місяців тому +3

    It doesnt work 😢

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

    Make a tutorial on how to make a survival game

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

    GnomeCode please make a tutorial how to make the I'm on observation duty game in roblox and make it be like Piggy watch duty

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

    Cool, now add stamina

  • @Karam.alhasan
    @Karam.alhasan 9 місяців тому

    Gnome can u teach us how to make toilet tower defence game plssssssssssssss😢

  • @KingsofRyanAirOfficial
    @KingsofRyanAirOfficial 9 місяців тому +1

    gnomecode make a video called "one piece game tutorial"

  • @pierrotlebauju3703
    @pierrotlebauju3703 9 місяців тому +2

    gnomecodedo you know where do your evil twin is ? we didnt see him by a long time now ;)

    • @GnomeCode
      @GnomeCode  9 місяців тому +2

      It's a full moon soon...

    • @user-dw3fp2lr6c
      @user-dw3fp2lr6c 9 місяців тому +1

      @@GnomeCode you better challenge him to a scripting battle

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

      @@user-dw3fp2lr6c For myself im good at scrypting but for building i would absolutly not challenge him ;)

  • @jordyissappig
    @jordyissappig 9 місяців тому +1

    Gnome you are a different person you can make roblox games and beat the sh*t out of me in 8 ball pool.

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

    What if you want mobile support? Mobile doesn’t have shift lol

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

    Keep updating Teddy until Chapter 6 please

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

    Hey GnomeCode I Have Been Wondering How To Make The Units Walk On The Path And Damage Them By Hitting
    Edit 1:I Have A Game Project Thats Called SPTD Aka Superpower Defense
    For Gnomecode-

  • @Lkiee
    @Lkiee 9 місяців тому +1

    Пгпда❤

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

    hi gnome

    • @GnomeCode
      @GnomeCode  9 місяців тому +2

      Hello

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

      @@GnomeCode also could you make an updated tower defense tutorial cause some things didnt work for me

  • @vildanozcan37
    @vildanozcan37 9 місяців тому +1

    Bana bir lütfen bağış oyunu yapmayı veya mm2 yapmayı gösterebilir misin

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

    why do we need runservice ? is this not enough ?
    local UIS = game:GetService("UserInputService")
    local player = game.Players.LocalPlayer
    local character = script.Parent
    local Humanoid = character:WaitForChild("Humanoid")
    UIS.InputBegan:Connect(function(input, process)
    if process then return end
    local keyCode = Enum.KeyCode.LeftShift
    if input.KeyCode == keyCode then
    Humanoid.WalkSpeed = 50
    end
    end)
    UIS.InputEnded:Connect(function(input,process)
    if process then return end
    local keyCode = Enum.KeyCode.LeftShift
    if input.KeyCode == keyCode then
    Humanoid.WalkSpeed = 16
    end
    end)

  • @user-dw3fp2lr6c
    @user-dw3fp2lr6c 9 місяців тому +1

    The tower defense games scripts need to be renewed they don’t work after episode two!

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

    2:15

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

    You're tutorials are great but I'm very dissapointed that you did not teach people how to make an animation for it.

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

    Hello

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

    17 comment and 101 viewer