The information on this page may no longer be accurate. To see the latest, go to our new and improved documentation. You can also learn more about the future of documentation.
Collapse Sidebar


This function loads an Animation onto a Humanoid, returning an AnimationTrack that can be used for playback.

The following code can be used to load an Animation onto a Humanoid.

local animationTrack = humanoid:LoadAnimation(animation)

Should I load an Animation on the client or server?

If the Humanoid is controlled by a particular client, as is the case with Player Player/Character|Characters then Animation|Animations should be loaded and played from that client.

If the Humanoid belongs to a NPC (Non Player Character) which the server has network ownership of then the Animation|Animations should be loaded and played from the server.

Although generally it is not advisable to do so, these rules can be bypassed using the Animator object.


Name Type Default Description

The Animation to load


Return Type Summary

Code Samples

Loading a Humanoid Animation

The following would cause the Humanoid to act out the loaded animation.