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
YOUR THE ONLY PERSON WHO ACTUALLY MAKES SENSE, LIKE YOU NEVER RUSH THROUGH THINGS AND THATS REALLY AMAZING!!!
Great video! You should make a part 2 adding a stamina bar!
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)
this is the exact tutorial I was waiting for! Keep the great work up 👍
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!
Keep the work up brother, I always have a good time watching your videos 👍
Thanks for the good vibes!
Keep the work! I learned so much from you and dont want to stop!
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
i was just looking for a tutorial like this you are AMAZING!
Been making some fun random scripts because I can, and your channel's taught me SO much. Thank you kindly ^^
Nice tutorial, really helped me!
YESSS IVE BEEN WAITING FOR THIS TUTORIAL TYTSM
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.
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!
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
Keep the work up! Can you make a tutorial on how to add dash that drains stamina while using
finally a tutorial that shows basics of keybind. True legend
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.
Amazing Gnome Coder
keep up the good work!!
Awesome video!
Love this tut
Good tutorial, is really useful ty
its always a good day when gnomecode uploads
thank you for this
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.
about time! thanks!
crazy crazy video, i can finally run, ive never felt so fast in my life. thank you gnome!!!!!1!!1211!!
Amazing video gnomecode your content is the best I was wondering if you can explain like the badge award system
Nice tutorial,Keep it up.
You are the only quality Roblox studio UA-cam channel which uploads very frequently and explains everything really in nicely ❤❤
Awesome video as always!
First reply to first comment
lol
Gnome code I love you ❤
Thank you!
tysm!
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🎉❤
❤good video gnome
yay new upload
Hello gnome,can you make advanced tools series or something about tools in general?
Ty 🥰
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!
legend
just commenting for the algorithm lol. More ppl needs to see this
gnomes 🔛🔝
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!
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!
I learned coding on your chanel, thanks :D
Hello gnomecode, can you make a tutorial on how to select your in-game keybinds? It would help a lot
also You're amazing!!!
Very good tutorial! This is a helpful skill for new scripters! Pay attention to the master Gnome guys
Hello Gnome! Can you make a tutorial on the truck system? Thanks!
Love your video's
But can you do a collectable chest like in most simulator games that has a timer before spawning back in
hey gnomecode when are you going to continue on your doors series?
It would be amazing if you remade the tower defense tutorial
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 👍
Hey Pineblox, sorry to disappoint but there probably won't be another gamejam till halloween or christmas.
Ah that’s ok! Keep up the good videos 👍
i want the doors series back.. its been so long, but epic vid
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.
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?
So RunService is for running, i get it now!
How do I make a sword with working animations?
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
Hi, could you make another OOP video? You made it so awsome!
Sure, I could do. I mostly avoided mentioning inheritance in my last video. Is there anything specific you're wanting to know about?
@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 :))
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
nice
Can your next tutorial being making a UI Button for toggle running on mobile and a keybind for xbox?
Code helps😀😀
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.
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
That would be awesome if you’d make tutorials on how to make a tycoon game
Hello gnome. Can you please make series like "how to make a game like bee swarm simulator"?
@GnomeCode Are you gonna do another doors video
Yes
where is the rest of the doors tutorials?
s
also can u pls redo the tower defense series pls my zombie wont move
How about a car chassis? I would like some help with it please.
I'd recommend watching Suphi Kaners video ua-cam.com/video/FVOowr2DXbM/v-deo.html
oh thanks this helps alot! @@GnomeCode
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
can you make a tutorial for bee swarm simulator
Hello gnome 🙃 can you make a video about webhooks in roblox?
Gnome pls continue the doors series
I can now sprint.
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 🙏
TUTORIAL IDEA: HOW TO MAKE A GAME LIKE DINGUS
It doesnt work 😢
Make a tutorial on how to make a survival game
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
Cool, now add stamina
Gnome can u teach us how to make toilet tower defence game plssssssssssssss😢
gnomecode make a video called "one piece game tutorial"
gnomecodedo you know where do your evil twin is ? we didnt see him by a long time now ;)
It's a full moon soon...
@@GnomeCode you better challenge him to a scripting battle
@@user-dw3fp2lr6c For myself im good at scrypting but for building i would absolutly not challenge him ;)
Gnome you are a different person you can make roblox games and beat the sh*t out of me in 8 ball pool.
What if you want mobile support? Mobile doesn’t have shift lol
Keep updating Teddy until Chapter 6 please
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-
Пгпда❤
hi gnome
Hello
@@GnomeCode also could you make an updated tower defense tutorial cause some things didnt work for me
Bana bir lütfen bağış oyunu yapmayı veya mm2 yapmayı gösterebilir misin
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)
The tower defense games scripts need to be renewed they don’t work after episode two!
Gnome please :(
2:15
You're tutorials are great but I'm very dissapointed that you did not teach people how to make an animation for it.
Hello
17 comment and 101 viewer