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

How can I make a anti-jump script?

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

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

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