local UIS = game:GetService("UserInputService")
local Char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
local humanoid = Char.Humanoid
local jumps = 0
local maxJumps = 2
local jumpTick = tick()
local jumpPower1 = 40
local jumpPower2 = 120
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
if jumps == 0 then
humanoid.JumpPower = jumpPower1
else
humanoid.JumpPower = jumpPower2
end
jumpTick = tick()
jumps += 1
humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end
end)
#Script not changing 2nd jump's height
1 messages · Page 1 of 1 (latest)
Do your humanoids use JumpPower or JumpHeight?
just changed it, jump height apparently
it's changed both jumps but I think I can figure that out
thanks man