Is there a way to make a Player unable to jump?
COMMUNITY QUESTION
Is there a way to make a Player unable to jump?
2 answers
local h=script.Parent:WaitForChild("Humanoid")
h.Changed:connect(function(p)
if p=="Jump"then
h[p]=false
end
end)
Use the Changed event to set Humanoid.Jump to false instantly whenever the user presses space so the character doesn't respond to it.
local humanoid = script.Parent:findFirstChild("Humanoid")
humanoid.Changed:connect(function(prop)
if prop == "Jump" then
prop=false
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Setting the variable to false won't set the property to false.