Debounce being weird

I press a key while hovering on 2 dummies. There is a part summoned on them that deals damage. It disappears. After a while I can use it again. But like in the prints, after the first few times, it doesn’t work. I am not trying to make it so once it deals damage, it will stop dealing damage as I already have something for that and I don’t want it to be single attack. The ACTUAL problem is that it won’t deal damage if I set the wait for it too low after a few times I’ve activated the attack.

okay so can you send an rbxl file or lua file so I can take a look, again I can’t read the code you posted

here’s a video i guess error - YouTube

Hi,
I’m very concerned about how you put Hitbox.Touched:Connect inside of another event handler. Do you have debouncing for the Attack1.OnServerEvent? Every time you do the Attack1, you will create a new Touched event object (possibly ALOT depending on how fast the Attack1 event fires) and if you connect without disconnecting that is a memory leak. Also now with the possibly 100s of Touched events, all firing during the Attack1 things will start to get very weird after awhile.

I see, I will try to fix that.

thank you