Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you disable jumping?

Asked by 10 years ago

I mean, i've seen it in the Roblox BATTLE game. When you run out of stamina your jump is disabled temporarily. How do they do that?

1 answer

Log in to vote
0
Answered by 10 years ago

Try using a BodyObject such as BodyVelocity to keep the Torso down, then when you want the player to be able to jump set the maxForce to Vector3.new() so that the player can jump again.

Ad

Answer this question