Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you change the walkspeed when the player crouches?

Is there any way of changing walkspeed when the player crouches in my game?

1 answer

I don't know what you use to crouch or detect crouching, but you might use something like this

while crouching == true then
	Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed * 0.5
end

2 comments

0

I used KeyUp and KeyDown to detect crouching.

0

You need to set the walkspeed to a value. This script infinitely decreases the speed

This discussion is preserved as it was. New answers, comments, and votes are closed.