#Disable jumping
1 messages · Page 1 of 1 (latest)
set jumppower to 0
easiest way
ok thanks
Hey I want to like make it so the player has a little jump cooldown but it doesnt work... could you help me there her is the script :```lua
local jump = game.StarterPlayer.CharacterJumpPower
local function character_added(char:Model)
task.wait()
local humanoid = char.Humanoid
humanoid.StateChanged:Connect(function(old_state, new_state)
if new_state==Enum.HumanoidStateType.Jumping then
print("Jumping")
jump = 0
wait(3)
jump = 24
end
end)
end
if game.Players.LocalPlayer.Character then
character_added(game.Players.LocalPlayer.Character)
end
game.Players.LocalPlayer.CharacterAdded:Connect(character_added)```
and bt it prints Jumping
Set a debounce so they cant keep firing it.
That's how most cooldowns are done.
doesnt do anything just stops the print thing from printing
and there are no errors