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

Why is the script breaking?

Asked by 10 years ago

Sometimes this script break, how could it not? This was made by Nikilis by the way.

local TimeBetweenJumps = .5;
local Player = game.Players.LocalPlayer
repeat wait() until Player.Character ~= nil;
local Character = Player.Character
--repeat wait() until Character:FindFirstChild("Humanoid")
local Humanoid = Character:WaitForChild("Humanoid");
local LastJump = time();
Humanoid.Changed:connect(function()
    if Humanoid.Jump then
        if time()-LastJump >= TimeBetweenJumps then
            LastJump = time();
        else
            Humanoid.Jump = false;
        end
    end
end)
0
It needs to be in a Localscript. Was it? dyler3 1510 — 10y
0
Yes it was. peoplemove12 148 — 10y

1 answer

Log in to vote
-1
Answered by
LAC44 20
10 years ago

Try putting the script in StarterPack.

0
...I've done that peoplemove12 148 — 10y
Ad

Answer this question