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

Why does this script work in SOLO mode, but not in the actual game?

This is supposed to dis-able jumping. It works in SOLO play on ROBLOX Studio, but not in the actual game.

--Here is the script--

print("aase69's AWESOME NonJump script - Loaded")
function onChanged()
script.Parent.Parent.Character.Humanoid.Jump = false
end
script.Parent.Parent.Character.Humanoid.Changed:connect(onChanged)

--this is not my script--

2 answers

✓ Accepted answer

The script is probably loading itself faster than it can find the humaoid. At the beginning in the script, add:

Player = game.Players.LocalPlayer
repeat wait() until Player.Character
Character = Player.Character
Character:WaitForChild("Humanoid")



1 comment

0

Thank you so much, That and putting it in StartGUI instead of StartPack worked! Thank you, and Merry Christmas

Is it a local script in the StarterGui? If not, do that.

1 comment

0

No, it wasn't thank you!

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