Universal Script 📌
426 Views
13.0k Executions

DUBLE JUMP SCRIPT

10K executions
Universal Script 📌
Timmaf
Timmaf10K executions
10 months 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

cool duble jump script(change the value of maxJumps to the number of jumps you want)

View Raw
--to make the script work, create a local
local UIS = game:GetService("UserInputService")
local character = game.Players.LocalPlayer.Character
local humanoid = character.Humanoid
--Config...
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!

More universal scripts

See all
Universal Script 📌
13
1
Approved 14 minutes ago
Key System
Universal Script 📌
15
0
Approved 21 minutes ago
Key System
Universal Script 📌
47
8
Approved 1 hour ago
Universal Script 📌
117.9k
817.1k
Bumped 1 hour ago
Universal Script 📌
43
3
Approved 1 hour ago
Universal Script 📌
66
13
Approved 2 hours ago