PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. Instead, you should go to our new and improved documentation. You can also learn more about the future of documentation.
Collapse Sidebar

AnimationPlayed

The AnimationPlayed event fires when an AnimationTrack begins playing on the Humanoid.

A common use for this function is to connect the AnimationTrack/KeyframeReached event for the playing AnimationTrack, so additional effects can be added to the animation (for example Sound|Sounds and ParticleEmitter|ParticleEmitters).

This event can be used for any Humanoid regardless if it belongs to the local player’s client or not.

See also

  • For the AnimationController equivalent of this event, please see AnimationController/AnimationPlayed

Parameters

Name Type Default Description

The AnimationTrack that has begun playing


Code Samples


Pausing An Animation When a KeyFrame is Reached

The example below pauses any AnimationTrack playing on the humanoid when a keyframe named ‘PausePlayback’ is reached.