How do I reset an animation?

What I mean is, when something happens the animation will play for example until it’s finished. But what if I wanted the animation to restart when something else happens. How do I reset the animation?

for that you just press the loop button so that it is restarting the animation when finished

I don’t want the animation to restart right when it finishes, I want it to restart only when something happens. Like if a button is pressed then the animation will restart.

You have to stop the current animation and in a new event you play the animation .