Collapse Sidebar


Fires whenever the AnimationTrack finishes playing.

This event has a number of uses. It can be used to wait until an AnimationTrack has stopped before continuing (for example, if chaining a series of animations to play after each other). It can also be used to clean up any Instances created during the animation playback.

Code Samples

AnimationTrack Stopped

The function in this code sample will play an animationTrack and yield until it has stopped, before printing.

local function yieldPlayAnimation(animationTrack, fadeTime, weight, speed)
	animationTrack:Play(fadeTime, weight, speed)
	print("Animation has stopped")