Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make a anti-jump script?

Asked by 10 years ago

Just as the title says, im looking on a way how to make a script that wont allow the player to jump... Thank's in advance!

1 answer

Log in to vote
0
Answered by 10 years ago
game.Players.PlayerAdded:connect(function(plr)
plr.Character.Humanoid:Changed:connect(prop)
if prop == "Jump" then
plr.Character.Humanoid.Jump = false
--plr.Character.Humanoid.Sit = false
end
end) 

What this script does is: 1. When a player enters the game, attach the function to it. 2. The function will detect whenever the player has jumped or Sitted. TODO: Don't let sitting also. 3. Change the Sit property to prohibit Jumping 4. ??? 5. Profit

Ad

Answer this question