Melee attack system (SOLVED)

I wanted to make a melee attack system for my player. It should change the animation in random (right or left punch) but it doesn’t work. It keeps changing animations if the button is pressed, even with “trigger it once” condition.
I followed wishforge’s tutorial, but it doesn’t work in my case.


I’ve found the issue. The problem was in the animation events. So the system itself works!