Universal Script 📌
62.2k Views
6.4k Executions

Double Jump

Universal Script 📌
eeee
eeeePublished 5
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

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

Updates

  1. Script edited: Create script

View Raw
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)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!