I don't want the songs to just be spammed anyone know how to make it have cooldown?
✓ ANSWER ACCEPTED
How to make my music touch pad have a cooldown?
3 answers
✓ Accepted answer
Use Debounce.
For Example.
local debounce = false
script.Parent.Touched:connect(function(hit)
if debounce==false then
debounce = true
print("Reaper5 was here")
--script stuffings here
wait(2)
debounce = false
end
end)
That will make the event only be fired once (if touched) every two seconds.
I'd create a boolean variable called enabled and only let the function run if enabled is set to true otherwise just return out of the function.
Look, This is Scripting Helpers we do not make scripts for other people. Hint on the Helpers just because it has helpers doesn't mean that we make scripts we fix and or repair the scripts.
- Redstone Studios Corperation
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
dude im not asking on making it
Making it is worse this is about scripting and "how to make it have cooldown?" How to make it you script it and we fix or repair it.