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

How can I stop a character from jumping?

I am unable to disable jumping. I don't want the character to jump.

I've tried doing

Humanoid.Changed:connect(function(property) Humanoid.Jump = false end)

It makes it false, but the character still jumps.

2 answers

✓ Accepted answer

Here, I remade the script, tested and should work;

repeat wait(0)until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")and game.Players.LocalPlayer:GetMouse() --Repeats waiting 0 seconds until LocalPlayer, LocalPlayer's Character, LocalPlayer's Character's Humanoid, and the Player's Mouse (Don't know why I added that :P )
game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jumpy) --If something changed then (Using the Changed event)
if jumpy == "Jump"then --If Jump changed then
game.Players.LocalPlayer.Character.Humanoid.Jump = false --Jump is false
end --The end for the 'if' statement
end) --The end for the Changed event

This script has been testing and should work, hope this helped!

1 comment

0

I've been testing your script. And I created it to make it lag after you jump.

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