Detect When Animation Finishes?

I want to figure out how play a function when an animation stops. I tried using animtrack.Stopped:Connect(function) , but it also runs when the animation is stopped using animtrack:Stop(). I want it to only run when it finishes the animation without stop from start to finish.
Please help, thank you.

You can check if animtrack.TimePosition is = animtrack.Length

If you are using looping animation, you can use .DidLoop

2 Likes