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

How to prevent characters from jumping?

Simple question. How would you disable jumping for the standard ROBLOX character? I understand that a while ago there was a method where you could use this:

while true do
	plr.Character.Humanoid.Jump = false
	wait()
end

To stop characters from jumping. However, this doesn't work any more.

2 comments

0

Did you make sure to actually give plr the property of all players?

0

I was using that as an example.

1 answer

✓ Accepted answer

This is what you'd do:

repeat wait(0)until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")and game.Players.LocalPlayer:GetMouse()
game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jumpy) 
if jumpy == "Jump"then 
game.Players.LocalPlayer.Character.Humanoid.Jump = false 
end 
end) 

1 comment

0

Thank you very Much

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