Problem with Attack System

So in my SSB game there is a problem, if the player turns right and presses the attack key on the keyboard he can spam it unlimited. But I already a cool down for it with timers, and I don’t know how to fix this problem.

Here a gif to make it more clearer


You will need to post screenshots of your events before people can assist.

Pause the timer after 0.4 seconds and see if it fix


That helped, thanks but now a other problem appeared. If I try to attack PlayerTwo with PlayerOne PlayerTwo’s hitbox is deplaced a bit behind the player sprite

I don’t see or understand the issue.