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

How do you disable your character from jumping?

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

✓ Accepted answer

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

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