This item is not replicated across Roblox’s server/client boundary.
This property can only be read from. Attempting to write to it will cause an error.
Animation object that was used to create this
AnimationTrack. To create an
AnimationTrack the developer must load an
Animation object onto a
AnimationController using the
The Animation property is used to identify the underlying
Animation of an
Listen For New Animations
The following code sample includes a function that prints the name of an animation whenever an AnimationTrack plays on a humanoid.
A connection is made listening to the Humanoid.AnimationPlayed and the name of the underlying animation is printed.
Please note that AnimationPlayed is a member of both Humanoid and AnimationController which this example would also work on.
function listenForNewAnimations(humanoid) humanoid.AnimationPlayed:Connect(function(animationTrack) local animationName = animationTrack.Animation.Name print("Animation playing "..animationName) end) end