Universal Script 📌
441 Views
14.1k Executions

DUBLE JUMP SCRIPT

10K executions
Universal Script 📌
Timmaf
Timmaf10K executions
11 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
Script hub
164
719
10 hours ago
Key System
Script hub
74
76
Approved 3 hours ago
Script hub
40
38
Approved 3 hours ago
Universal Script 📌
56
43
Approved 3 hours ago
Script hub
30
36
Approved 4 hours ago
Key System

Script hub

mobile support