I know there's a way to do it with the jumped event, but I'd like to know how to do it by disabling the spacebar, if possible.
COMMUNITY QUESTION
How can I disable jumping?
1 answer
Disabling the Jump from a Player is Possible, But this can only be operated from a LocalScript. First Step we will use the Changed event so if the Jump is activated it will automaticly switch it to false, The Change event fires whenever an Object has a change, example:
object=workspace.BasePlate
object.Changed:connect(function()
print("Changed")
end)
Now when I removed the baseplate(from test) the output Printed:
Changed
Now lets create your script.
humanoid=game.Players.LocalPlayer.Character.Humanoid-- Humanoid
humanoid.Changed:connect(function()--Thats pretty much it.
humanoid.Jump=false
end)
If this Helped please Accept Answer and Upvote!
This discussion is preserved as it was. New answers, comments, and votes are closed.
