Mouse.Button1Down:Connect(function(Mouse)
local Firing = true
if Active and Firing then
Firing = false
Dead()
TankRnd()
end
wait(5)
Firing = true
end)
This is my code to fire my Tank cannon basically but I cannot seem to get the debounce to work properly and then you can spam fire it which is no bueno...
Any help would be greatly appreciated.

6 comments
Edited.
I was so hopeful but nope...
After the intial debounce, you can spam fire
I'll try it again.
I've edited it, I can't see how this wouldn't work. It should repeat the debounce now as the firing = false was outside.
Im using a tool thats why. So perhaps thats it?