How do I make player not able to jump?
01 | function OnEntered(Player) |
02 | while Player.Character = = nil do |
06 | function OnRespawned(Character) |
07 | local Torso = Character:findFirstChild( "Torso" ) |
09 | local AntiJump = Instance.new( "BodyPosition" ) |
10 | AntiJump.Parent = Torso |
11 | AntiJump.position = Vector 3. new ( 0 , 6 , 0 ) |
12 | AntiJump.maxForce = Vector 3. new ( 0 , 10000000000 , 0 ) |
15 | game.Players.ChildAdded:connect(OnEntered) |
16 | game.Workspace.ChildAdded:connect(OnRespawned) |
I have been using this script and you are still able to jump. Could anyone fix this so no players will be able to jump?