I'm developing a game that involves conveyors, but everyone knows that you can simply bunnyhop across it. So I wrote a script that set the players' Jump value to false every time the humanoid changed. It works absolutely fine in offline mode, but in online mode it doesn't respond when the humanoid changes. Could any one help me? (By the way, FilteringEnabled is not on.)
wait(1) local h=script.Parent.Parent.Character.Humanoid function disable() h.Jump=false end script.Parent.Parent.Character.Humanoid.Changed:connect(disable)
Also, the script is in PlayerGui.
Would this help?
wait(0.5) local Human = game.Players.LocalPlayer.Character:WaitForChild("Humanoid") Human.Changed:connect(function() Human.Jump = false end)