local hum = script.Parent:WaitForChild("Humanoid")
local holding = false
local cooldown = true
local function cool()
cooldown = false
wait(1.2)
cooldown = true
end
script.Parent.Humanoid.Changed:Connect(function(p)
if p == "Jump" then
if cooldown and not holding then
hum.UseJumpPower = true
holding = true
cool()
else
hum.UseJumpPower = false
end
end
end)
game.ReplicatedStorage.Jump.OnServerEvent:Connect(function()
holding = false
end)
on the bottom it is fired when the player lets go of the space and this script used to work but when i made the player be a custom character it stopped working like the use jump power no longer had control over the character is there a way to have control over the player again?
edit i made do .JumpPower = 0 to make it not jump and .JumpPower = 50 to make them jump!
