Double Jump
Key RequiredUniversal

Double Jump

Universal Scripteeeeeeee 61.4K views 4.9K executesUpdated Jul 23, 2024
5.0/ 5(2 votes)
20100% Positive
Lua Script•21 lines (502 chars)
local UIS = game:GetService("UserInputService")
local character = game.Players.LocalPlayer.Character
local humanoid = character.Humanoid

local jumps = 0
local maxJumps = 2
local jumpTick = tick()

humanoid.StateChanged:Connect(function(old, new)
	if new == Enum.HumanoidStateType.Landed then
		jumps = 0
	end
end)

UIS.JumpRequest:Connect(function()
	if jumps < maxJumps and tick() - jumpTick > 0.2 then
		jumpTick = tick()
		jumps += 1
		humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
	end
end)

Features & Information

WARNING: If there is any anti-jump inf in the game.

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts