I made a button game that uses debounce as a cooldown before button is usable, but I also want the button to cancel the cooldown whenever this script is in workspace and I inserted this script onto workspace. However, I do not know to advanced of scripting so I need help if I need corrections on my script.
Button = script.Parent
if local debounce == false then
wait(10)
local debounce = true
Button.Material = ("Neon")
end
P.S. This is a local script I put in

2 comments
Didn't work
What's your way of activating the button?