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!
COMMUNITY QUESTION
How can I make a anti-jump script?
1 answer
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:
- When a player enters the game, attach the function to it.
- The function will detect whenever the player has jumped or Sitted. TODO: Don't let sitting also.
- Change the Sit property to prohibit Jumping
- ???
- Profit
This discussion is preserved as it was. New answers, comments, and votes are closed.
