#Cooldown
1 messages · Page 1 of 1 (latest)
yes show the script
did you try asking the person who wrote the script?
local tool = script.Parent
local COOLDOWN = 300
local canUse = true
tool.Activated:Connect(function()
if not canUse then
print("Cooldown active, wait please.")
return
end
canUse = false
tool.Enabled = false -- disable tool use
print("Tool used! Cooldown started.")
-- Put your punch logic here if you want
task.delay(COOLDOWN, function()
canUse = true
tool.Enabled = true -- re-enable tool after cooldown
print("Cooldown ended, tool ready.")
end)
end)