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

How to make an anti jump you can turn on or off ingame?

Asked by 6 years ago

I have been trying to make a script that will allow me to set whether people can jump or not for my virtual airline. I have tried the following script:

local player = game.Players.LocalPlayer
repeat
if script.Parent.Value == true then
player.Character.Humanoid.JumpPower = 0 
else
player.Character.Humanoid.JumpPower = 15    
end
until i == 2

and while that does not work when I turn the value on or off, the jump power effect would not work for jumping out of seats.

I have not found any scripts that let you turn it on or off so is there anything obvious that I am missing here?

Any help would be gratefully appreciated. Thanks, Will

0
What is "i"? Please post your full script so that we can better determine what the error is. Julian_Orteil 48 — 6y
0
Also that would only run once: when they first join NexanianStudios 91 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

For a Ro-Airline I see? The easiest way would be to use nojump or with the admin commands :jpower all 0

0
Thanks! I am now using :jpower all 0. Thanks! Phoneitpro -5 — 6y
0
No problem, be sure to accept answer xD DaWarTekWizard 169 — 6y
Ad

Answer this question