#How to add cooldown prompt on my vehicles

1 messages · Page 1 of 1 (latest)

vague sapphire
#

im new to scripting and im trying to prevent people from spamming vehicle spawning

livid vigil
#

make cooldown like:

local cooldown = false

button.Activated:Connect(function()
    if cooldown then return end
    cooldown = true
    task.delay(2, function() -- what ever time you want
        cooldown = false
    end)

    --function whatever
end)