Тёмный

How to Make a CROUCH SYSTEM in Roblox Studio 

DevMelon
Подписаться 3,2 тыс.
Просмотров 4,9 тыс.
50% 1

Опубликовано:

 

28 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 75   
@FalseMind
@FalseMind 3 месяца назад
Full LocalScript local UIS = game:GetService("UserInputService") local Crouching = false local Character = script.Parent local Humanoid = Character:WaitForChild("Humanoid") local Animation = script.CrouchAnimation UIS.InputBegan:Connect(function(key) if key.KeyCode == Enum.KeyCode.C then if Crouching == false then Crouching = true LoadedAnimation = Humanoid:LoadAnimation(Animation) LoadedAnimation:Play() Humanoid.HipHeight -= 1.2 Humanoid.WalkSpeed = 8 Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false) else Crouching = false LoadedAnimation:Stop() Humanoid.HipHeight += 1.2 Humanoid.WalkSpeed = 16 Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, true) end end end)
@Qwertygamerno1
@Qwertygamerno1 День назад
Thanks!
@deathdoesroblox
@deathdoesroblox 3 месяца назад
Great video man, it was such a great video, from the very beginning
@devmelonroblox
@devmelonroblox 3 месяца назад
Thank you very much dear sire death who greatly does Roblox
@The0therDev
@The0therDev Месяц назад
YO HI DEATH I RANDOMLY SAW U IN AN MM2 SERVER NOW ON A COMMENT ON A RANDOM VIDEO LOL
@deathdoesroblox
@deathdoesroblox Месяц назад
@@The0therDev what a coincidence 😂😂 a pleasure to meet you too 🔥🔥
@devmelonroblox
@devmelonroblox Месяц назад
@@The0therDev yeeeee
@haterquenaodahate6334
@haterquenaodahate6334 3 месяца назад
Your videos are the best I found to start programming , keep it up man
@devmelonroblox
@devmelonroblox 3 месяца назад
Thanks ❤
@SussyAmogus2203
@SussyAmogus2203 3 месяца назад
@@devmelonroblox but tysm i appreciate it the script is usefull
@NorsinosamaSalah
@NorsinosamaSalah 3 месяца назад
W vid Man ive been using your tutorials and they Never upset anyone keep the good work! ^_^
@Teaflake
@Teaflake 2 месяца назад
THANK YOU soooo much ive checked every video and not one worked but this one did thank you
@devmelonroblox
@devmelonroblox 2 месяца назад
@@Teaflake I’m glad I helped!
@piexk_Evie
@piexk_Evie 20 дней назад
finally a tutoriall that isnt "USE MY FREE MODEL!!!"
@FlowByteStudios
@FlowByteStudios 2 месяца назад
Amazing video thank you so much you deserve more views +1 sub
@devmelonroblox
@devmelonroblox 2 месяца назад
Thank you cos I helped!
@devmelonroblox
@devmelonroblox 2 месяца назад
Glad*
@esraanada2936
@esraanada2936 3 месяца назад
There is something going wrong for me, it also happened when i did the sliding animation from one of your videos too, whenever i press the button, nothing happens .
@senphoenix9507
@senphoenix9507 Месяц назад
Same
@LeBaconator-j3f
@LeBaconator-j3f Месяц назад
same
@tylerkasturi1209
@tylerkasturi1209 22 дня назад
great video! one question though; when a player is crouching under something, if they uncrouch while still under it then they'll stand up inside of it and get stuck, unless they crouch again. how could you modify the code to make it so that when a player is underneath something, they're unable to press the button until they have adequate room above them to do so? thanks!
@henriquebigolin2006
@henriquebigolin2006 3 месяца назад
Very Simple brooo very good
@devmelonroblox
@devmelonroblox 3 месяца назад
Thank you so much 🙂
@notnooby2118
@notnooby2118 25 дней назад
I can't get my code to work local UIS = game:GetService("UserInputService") local Crouching = false local Character = script.Parent local Humanoid = Character:WaitForChild("Humanoid") local Animation = script.CrouchAnimation UIS.InputBegan:Connect(function(key) if key.KeyCode == Enum.KeyCode.C then if Crouching == false then Crouching = true LoadedAnimation = Humanoid:LoadAnimation(Animation) LoadedAnimation:Play() Humanoid.HipHeight -= 1.2 Humanoid.WalkSpeed = 7 Humanoid:SetStateEnable(Enum.HumanoidStateType.Jumping, false) else Crouching = false LoadedAnimation = Humanoid:LoadAnimation(Animation) LoadedAnimation:Stop() Humanoid.HipHeight += 1.2 Humanoid.WalkSpeed = 16 Humanoid:SetStateEnable(Enum.HumanoidStateType.Jumping, true) end end end)
@SussyAmogus2203
@SussyAmogus2203 3 месяца назад
here is the script : local UIS = game:GetService("UserInputService") local UIS = game:GetService("UserInputService") local crouching = false local character = script.Parent local humanoid = character:WaitForChild("humanoid") local animation = script.crouchanimation UIS.InputBegan:Connect(function(key) if key.KeyCode == Enum.KeyCode.C then if crouching == false then crouching = true loadedanimation = humanoid:loadedanimation(animation) loadedanimation:play() humanoid.hipHeight -= 1.2 humanoid.walkspeed = 8 humanoid:setStateEnabled(Enum.HumanoidStateType,jumping, false) else crouching = false loadedanimation:stop() humanoid.hipHeight += 1.2 humanoid.walkspeed = 16 humanoid:setStateEnabled(Enum.HumanoidStateType,jumping, true) end end end)
@_LimeLemon
@_LimeLemon 3 месяца назад
ty
@SussyAmogus2203
@SussyAmogus2203 2 месяца назад
@@CentaurTheNoob alright?
@CentaurTheNoob
@CentaurTheNoob 2 месяца назад
@@SussyAmogus2203 sussy
@SussyAmogus2203
@SussyAmogus2203 2 месяца назад
@@CentaurTheNoob sup?
@Bitrate2345
@Bitrate2345 Месяц назад
The pfp is crazy-😭😭
@shadowing_studio
@shadowing_studio 3 месяца назад
im here ;3
@devmelonroblox
@devmelonroblox 3 месяца назад
amazing
@shadowing_studio
@shadowing_studio 3 месяца назад
Ty for your com:3
@devmelonroblox
@devmelonroblox 3 месяца назад
Yw
@shadowing_studio
@shadowing_studio 3 месяца назад
W vid fr
@devmelonroblox
@devmelonroblox 3 месяца назад
yee thank you
@1_NOTTHING
@1_NOTTHING 24 дня назад
can you pls make a running system?
@AntiMyanmarGovernmentOperative
@AntiMyanmarGovernmentOperative 3 месяца назад
LETS GOOOO W UPLOAD SCHEDULE
@chellodevZ
@chellodevZ 3 месяца назад
Fr
@devmelonroblox
@devmelonroblox 3 месяца назад
yeeee
@LiamFurgason
@LiamFurgason 3 месяца назад
What about a crouching walking animation?
@devmelonroblox
@devmelonroblox 3 месяца назад
@@LiamFurgason I might make a part 2
@chellodevZ
@chellodevZ 3 месяца назад
Second Also W
@devmelonroblox
@devmelonroblox 3 месяца назад
W
@thefilipinoman21423
@thefilipinoman21423 Месяц назад
hey can you help? whenever i uncrouch it wont stop crouching, the hipheight would return to normal but the animation wont stop
@thefilipinoman21423
@thefilipinoman21423 Месяц назад
nevermind i fixed it :P
@notnooby2118
@notnooby2118 25 дней назад
@@thefilipinoman21423 yo i have that same issue how did u fix it?
@thefilipinoman21423
@thefilipinoman21423 25 дней назад
@@notnooby2118 copy the actual script lol, dont correct any orange lines
@notnooby2118
@notnooby2118 24 дня назад
@@thefilipinoman21423 thanks
@gamefeatures8509
@gamefeatures8509 Месяц назад
its not working for me bruh
@droxam
@droxam Месяц назад
im levitating bro idk what is happening
@LeBaconator-j3f
@LeBaconator-j3f Месяц назад
change the hipheight
@JettX1999
@JettX1999 29 дней назад
ahahhaahhaah
@Wobble2745
@Wobble2745 23 дня назад
The animation is not working 😭😭😭
@Mrexplosives333
@Mrexplosives333 2 месяца назад
Hey devmelon pls help it didt work for me
@castlecrasher2012
@castlecrasher2012 Месяц назад
not working
@XDxbox420
@XDxbox420 3 месяца назад
DevMelon shake🥴🥴🥴
@devmelonroblox
@devmelonroblox 3 месяца назад
what
@Dyxy_g
@Dyxy_g 5 дней назад
broooo thats not working
@BattleCompanionsGames
@BattleCompanionsGames 3 месяца назад
Ay
@devmelonroblox
@devmelonroblox 3 месяца назад
ayyy
@chellodevZ
@chellodevZ 3 месяца назад
@@BattleCompanionsGames hi BCG
@That_crab_guy
@That_crab_guy 29 дней назад
It does not work
@er_aviation
@er_aviation 3 месяца назад
Mobile support?
@devmelonroblox
@devmelonroblox 3 месяца назад
I will make mobile buttons tut soon!
@senphoenix9507
@senphoenix9507 Месяц назад
Didn’t work
@zmigal
@zmigal 3 месяца назад
Firist😂
@chellodevZ
@chellodevZ 3 месяца назад
Cool
@devmelonroblox
@devmelonroblox 3 месяца назад
Like always
@trebogolfshopsaikgolfklubb5473
@trebogolfshopsaikgolfklubb5473 3 месяца назад
It didnt work😢
@Faizal-rv9mu
@Faizal-rv9mu 2 месяца назад
Turn the action to movement
@Mrexplosives333
@Mrexplosives333 2 месяца назад
@@Faizal-rv9mu hey how do i do that
@Premium.Studios
@Premium.Studios Месяц назад
The animation wont play?
@SpiritIsOnTop
@SpiritIsOnTop Месяц назад
DIDNT EVEN WORK
Далее
Can 6 DEVS Make a STORY Game Without Communicating?
15:32
Roblox Faces Are Weirder Than You Realize
18:19
Просмотров 515 тыс.
Roblox Swear Update Is Here
9:19
Просмотров 405 тыс.
How to make a HORROR LIGHTING?? (Roblox studio)
3:50
How to make a DASH SYSTEM in Roblox Studio 2024!
7:29
A Guide to Minecraft's Most Ridiculous Mod
16:16
Просмотров 226 тыс.
The Story of The BIGGEST Roblox Hackers..
26:18
Просмотров 4,8 млн
Can 6 DEVS Make a HANGOUT Game Without Communicating?
17:25
I Broke EVERY Roblox Rule
21:16
Просмотров 782 тыс.