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

Why doesn't my Jump Prevention script work?

This is my script, aimed to prevent your character from being able to jump. It is in workspace.

local h=script.Parent:WaitForChild("Humanoid") 
h.Changed:connect(function(p) 
    if p=="Jump"then 
        h[p]=false 
    end 
end) 

2 answers

✓ Accepted answer

That won't work. Jump will immediately be set to false after jumping anyway (look at the property window of the humanoid and jump, you'll see.)

Have you tried setting JumpPower to 0?

you put == instead of = on line 3

1 comment

1

Um bro. Its suppose to have that on line three. When using conditional statements you use == or =~ or =< and stuff.

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