Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to know when an animation loaded into a character stopped?

Asked by 5 years ago

Hi, I've been making an animation and I want to know how to tell when it stopped (when the animation is completed and is done playing) but I can't find out how to do it!

1 answer

Log in to vote
1
Answered by 5 years ago
Edited 5 years ago

Once you've loaded the animation and have begun playing it, you can stop the animation with animTrack:Stop(), where animTrack is the variable where you load the animation into the humanoid.

You can use the AnimationTrack's IsPlaying (a bool value) to tell if the animation is playing or not.

There is also an event .Stopped

animTrack.Stopped:Connect(function()
    print("Stuff")
end)
0
thanks, how do I vote a question as answered? mybituploads 304 — 5y
0
you have atleast 20 or 25 above I think and 100 to down vote cherrythetree 130 — 5y
Ad

Answer this question