Quick tip:
Instead of doing:
if debounce == true then
You can just do:
if debounce then
Same thing to check if debounce is false, instead of doing:
if debounce == false then
You can just do:
if not debounce then
Quick tip:
Instead of doing:
if debounce == true then
You can just do:
if debounce then
Same thing to check if debounce is false, instead of doing:
if debounce == false then
You can just do:
if not debounce then