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

2 comments
What is "i"? Please post your full script so that we can better determine what the error is.
Also that would only run once: when they first join