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

Why is the script breaking?

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)

2 comments

0

It needs to be in a Localscript. Was it?

0

Yes it was.

1 answer

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