[Solved] Attack cooldown system not working

I was making a cooldown system for an attack animation for the player and it did the attack animation correctly, but when I wanted to attack again, the attack animation didn’t work. How can I solve this?

Hi does idk get reset to falso? i think animation=“attack” needs to be moved above animation ha finalizado

Nevermind, I fixed it.