How to stop animation at certain time

So I want to make it so if a player gets dodged, they freeze at the contact frame similar to the way it’s done in mighty combat. My solution was to create Animation Events labeled “Contact” and set the animation time to that event. But I don’t know how to get the time position of an Animation Event.

Example of what I’m trying to achieve:
Image from Gyazo
as you can see after he misses his punch, his animation stops at the contact frame. How would i achieve this?

1 Like

You should be able to call :Stop() on the animation or something along those sorts, I would recommend looking at the documentation for animation just to be sure.

1 Like

Just re read over your question, I see what you want, You should be able to use this

You can simply use AnimationTrack | Roblox Creator Documentation to get the animation’s current position when your animation event triggers (no clue why you’d need it tho, the animation event should be enough) and AnimationTrack | Roblox Creator Documentation to freeze it a few seconds like in the video you sent.

AnimationTrack:AdjustSpeed(0) will pause the animation.

Simply use the method when the other player has dodged.

1 Like