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

How do you disable your character from jumping?

Asked by 5 years ago
Edited 5 years ago

I know that it can be done, but I am not sure how. I also tried bodyforce, but that doesn't work. Any suggestions?

Here's my attempt

local mouse = game.Players.LocalPlayer:GetMouse()

mouse.KeyDown:connect(function(key)
    if key:lower() == "SpaceBar" then
        humanoid.Jump = false
    end
end)

1 answer

Log in to vote
1
Answered by
1ov3y0u 51
5 years ago

I mean, one way to do it is just set JumpPower to 0.

Ad

Answer this question