Hello.
this script is a child to a button, however, I cannot figure out why the debounce script is not working. It does not stop the player from spam clicking the button…
I cannot figure out why.
Everything is referenced correctly.
No errors.
to before the first line (the function) because every time you click the button and call the function you are making debounce false.
Haha, @supergreatr299 beat me to it.