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

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
    @JasyPlayStuff8 ай бұрын

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

  • @pMaiaa
    @pMaiaa9 ай бұрын

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

  • @MoneyCool-tc1mu

    @MoneyCool-tc1mu

    7 ай бұрын

    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
    @joseph323239 ай бұрын

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

  • @drkrok9399
    @drkrok93999 ай бұрын

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

  • @GnomeCode

    @GnomeCode

    9 ай бұрын

    Thanks for the good vibes!

  • @user-hw9cx2eq5z
    @user-hw9cx2eq5z9 ай бұрын

    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!

  • @itstehgamer
    @itstehgamer9 ай бұрын

    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

  • @MysticXMac1
    @MysticXMac19 ай бұрын

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

  • @roboriley
    @roboriley9 ай бұрын

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

  • @Rad_Pie
    @Rad_Pie9 ай бұрын

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

  • @pneum7932
    @pneum79329 ай бұрын

    YESSS IVE BEEN WAITING FOR THIS TUTORIAL TYTSM

  • @NoodlesYT-jy3db
    @NoodlesYT-jy3db3 ай бұрын

    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!

  • @dr_ned_flanders
    @dr_ned_flanders8 ай бұрын

    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.

  • @plupos
    @plupos9 ай бұрын

    finally a tutorial that shows basics of keybind. True legend

  • @SentryGaming275
    @SentryGaming2759 ай бұрын

    Nice tutorial, really helped me!

  • @user-dw3fp2lr6c
    @user-dw3fp2lr6c9 ай бұрын

    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

  • @ThatoneLuacoder
    @ThatoneLuacoder9 ай бұрын

    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.

  • @jaspurg8573
    @jaspurg85739 ай бұрын

    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.

  • @MarzFromMars
    @MarzFromMars9 ай бұрын

    its always a good day when gnomecode uploads

  • @Your14DayTrialHasEnded
    @Your14DayTrialHasEnded9 ай бұрын

    Amazing Gnome Coder

  • @Digitalsmile2
    @Digitalsmile29 ай бұрын

    about time! thanks!

  • @floppydiskdrive6
    @floppydiskdrive69 ай бұрын

    keep up the good work!!

  • @wexzy4037
    @wexzy40379 ай бұрын

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

  • @EATBADGE
    @EATBADGE9 ай бұрын

    yay new upload

  • @TheAnimators1811
    @TheAnimators18119 ай бұрын

    thank you for this

  • @demtix4381
    @demtix43819 ай бұрын

    Love this tut

  • @12Duckz
    @12Duckz9 ай бұрын

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

  • @RilubFox
    @RilubFox9 ай бұрын

    Good tutorial, is really useful ty

  • @robloxoof74638
    @robloxoof746389 ай бұрын

    Nice tutorial,Keep it up.

  • @DKKian
    @DKKian9 ай бұрын

    Awesome video as always!

  • @pothangus1118

    @pothangus1118

    9 ай бұрын

    First reply to first comment

  • @PencilPipoAnimations

    @PencilPipoAnimations

    9 ай бұрын

    lol

  • @mediocreatbest1269
    @mediocreatbest12698 ай бұрын

    Gnome code I love you ❤

  • @abyssaals
    @abyssaals6 ай бұрын

    Awesome video!

  • @shask1
    @shask19 ай бұрын

    legend

  • @fortniteog_yt8039
    @fortniteog_yt80399 ай бұрын

    ❤good video gnome

  • @Johnink03
    @Johnink039 ай бұрын

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

  • @R1S1SKA
    @R1S1SKA7 ай бұрын

    Thank you!

  • @gravyfireboy
    @gravyfireboy9 ай бұрын

    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🎉❤

  • @Alketro
    @Alketro9 ай бұрын

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

  • @floppydiskdrive6
    @floppydiskdrive69 ай бұрын

    also You're amazing!!!

  • @konkoloziYT
    @konkoloziYT9 ай бұрын

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

  • @CinderBlock38
    @CinderBlock389 ай бұрын

    gnomes 🔛🔝

  • @grapplerchaos
    @grapplerchaos9 ай бұрын

    tysm!

  • @bojaidin
    @bojaidin8 ай бұрын

    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!

  • @nowayback.4490
    @nowayback.44909 ай бұрын

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

  • @Daani_Duarte
    @Daani_Duarte9 ай бұрын

    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!

  • @ScripterDan
    @ScripterDan9 ай бұрын

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

  • @ARandomEliatrope
    @ARandomEliatrope7 ай бұрын

    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.

  • @Bub3ns
    @Bub3ns9 ай бұрын

    Ty 🥰

  • @ROLL50-Offical1
    @ROLL50-Offical18 ай бұрын

    I learned coding on your chanel, thanks :D

  • @thatbreadydogyt3758
    @thatbreadydogyt37589 ай бұрын

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

  • @PizzaMoose
    @PizzaMoose9 ай бұрын

    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!

  • @retrogamingyt5051
    @retrogamingyt50519 ай бұрын

    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
    @theoriginalandtrueamazonman9 ай бұрын

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

  • @user-cj7wh7wc4d
    @user-cj7wh7wc4d9 ай бұрын

    It would be amazing if you remade the tower defense tutorial

  • @bennyhurray4891
    @bennyhurray48919 ай бұрын

    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?

  • @mayax_
    @mayax_9 ай бұрын

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

  • @eliteengineer7340
    @eliteengineer73409 ай бұрын

    So RunService is for running, i get it now!

  • @maxenbest_lol0153
    @maxenbest_lol01539 ай бұрын

    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 ай бұрын

    @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
    @nixo41088 ай бұрын

    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

  • @jsnotlout3312
    @jsnotlout33129 ай бұрын

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

  • @goldenplague
    @goldenplague9 ай бұрын

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

  • @Burgzilla
    @Burgzilla9 ай бұрын

    nice

  • @PineBloxx
    @PineBloxx9 ай бұрын

    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 ай бұрын

    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 👍

  • @SadlekAski
    @SadlekAski9 ай бұрын

    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

  • @aqaisback9517
    @aqaisback95179 ай бұрын

    How do I make a sword with working animations?

  • @CGamePro
    @CGamePro9 ай бұрын

    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

  • @creatorrea_lyrics
    @creatorrea_lyrics9 ай бұрын

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

  • @david_lynne
    @david_lynne9 ай бұрын

    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.

  • @CamilleJohnson-zu3rd
    @CamilleJohnson-zu3rd9 ай бұрын

    Code helps😀😀

  • @AlbertAlbertEinstein
    @AlbertAlbertEinstein2 ай бұрын

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

  • @GalacticCow
    @GalacticCow9 ай бұрын

    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

  • @coplopt4252
    @coplopt42529 ай бұрын

    where is the rest of the doors tutorials? s

  • @candykid44
    @candykid449 ай бұрын

    I can now sprint.

  • @mcall5554
    @mcall55549 ай бұрын

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

  • @GnomeCode

    @GnomeCode

    9 ай бұрын

    I'd recommend watching Suphi Kaners video kzread.info/dash/bejne/eIqD0dmrYqe-krA.html

  • @mcall5554

    @mcall5554

    9 ай бұрын

    oh thanks this helps alot! @@GnomeCode

  • @monosheshofficial2288
    @monosheshofficial22889 ай бұрын

    Gnome pls continue the doors series

  • @nangeieikhaing4
    @nangeieikhaing49 ай бұрын

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

  • @bojjguppBSS
    @bojjguppBSS9 ай бұрын

    @GnomeCode Are you gonna do another doors video

  • @GnomeCode

    @GnomeCode

    9 ай бұрын

    Yes

  • @nuclear_monster
    @nuclear_monster8 ай бұрын

    It doesnt work 😢

  • @funky_guy8633
    @funky_guy86339 ай бұрын

    TUTORIAL IDEA: HOW TO MAKE A GAME LIKE DINGUS

  • @DaRealKiko
    @DaRealKiko9 ай бұрын

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

  • @scgamesvr
    @scgamesvr9 ай бұрын

    Make a tutorial on how to make a survival game

  • @Hdnybery
    @Hdnybery6 ай бұрын

    can you make a tutorial for bee swarm simulator

  • @mister.eparty232
    @mister.eparty2329 ай бұрын

    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 🙏

  • @KingsofRyanAirOfficial
    @KingsofRyanAirOfficial9 ай бұрын

    gnomecode make a video called "one piece game tutorial"

  • @Elpintinho
    @Elpintinho9 ай бұрын

    Keep updating Teddy until Chapter 6 please

  • @Honkerchief
    @Honkerchief9 ай бұрын

    Cool, now add stamina

  • @GoofyUncleYT
    @GoofyUncleYT9 ай бұрын

    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

  • @pierrotlebauju3703
    @pierrotlebauju37039 ай бұрын

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

  • @GnomeCode

    @GnomeCode

    9 ай бұрын

    It's a full moon soon...

  • @user-dw3fp2lr6c

    @user-dw3fp2lr6c

    9 ай бұрын

    @@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 ;)

  • @Karam.alhasan
    @Karam.alhasan9 ай бұрын

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

  • @NormalDude12
    @NormalDude129 ай бұрын

    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-

  • @zazmraz
    @zazmraz8 ай бұрын

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

  • @SkibidiBuddies
    @SkibidiBuddies9 ай бұрын

    hi gnome

  • @GnomeCode

    @GnomeCode

    9 ай бұрын

    Hello

  • @SkibidiBuddies

    @SkibidiBuddies

    9 ай бұрын

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

  • @jordyissappig
    @jordyissappig9 ай бұрын

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

  • @user-dw3fp2lr6c
    @user-dw3fp2lr6c9 ай бұрын

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

  • @user-dw3fp2lr6c

    @user-dw3fp2lr6c

    9 ай бұрын

    Gnome please :(

  • @Lkiee
    @Lkiee9 ай бұрын

    Пгпда❤

  • @dinginbro3320
    @dinginbro33207 ай бұрын

    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)

  • @vildanozcan37
    @vildanozcan379 ай бұрын

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

  • @Im_IntoDev
    @Im_IntoDev9 ай бұрын

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

  • @aqaisback9517
    @aqaisback95178 ай бұрын

    2:15

  • @bojjguppBSS
    @bojjguppBSS9 ай бұрын

    Hello

  • @DaToastFilms
    @DaToastFilms9 ай бұрын

    17 comment and 101 viewer