I don't want a player to keep spamming and keep clicking the sound button. That would be annoying. For example; If a player clicked the sound button, then they will have to wait for it to cool down and then they can click it again. How can do that?
Brick = script.Parent
Sound = Brick.Sound
function onClicked()
Sound:Play()
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

1 comment
We do not finish scripts, we only FIX them. Do the research yourself: http://wiki.roblox.com/index.php/Debounce