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

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

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

0

What is "i"? Please post your full script so that we can better determine what the error is.

0

Also that would only run once: when they first join

1 answer

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

2 comments

0

Thanks! I am now using :jpower all 0. Thanks!

0

No problem, be sure to accept answer xD

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