Animator
Animator : Instance
Overview
The core class for playing and synchronizing animations.
This instance handles all replication processes for running AnimationTrack instances.
Properties
EvaluationThrottled
bool
Currently not supported.
Code Samples
PreferLodEnabled
bool
Currently not supported.
Code Samples
RootMotion
CFrame
Currently not supported.
Code Samples
RootMotionWeight
number
Currently not supported.
Code Samples
Methods
ApplyJointVelocities
Currently not supported.
Parameters
Value
motors
Return
void
Code Samples
GetPlayingAnimationTracks
Currently not supported.
Parameters
Return
array
Code Samples
LoadAnimation
Loads the specified Animation into the Animator and returns a playable AnimationTrack instance.
If the Animator is included in a model such as a player character, where the local player owns the network ownership, calling this method on the client will also load the animation on the server.
To use LoadAnimation(), the Animator must exist within the Workspace, and the Animator must be created on the server and replicated to the client for animation replication to work. An Animator created locally cannot send loaded animations to other clients.
Parameters
Animation
InAnimation
The Animation object to be loaded
Return
AnimationTrack
The returned animation track.
Code Samples
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
repeat wait() until LocalPlayer.Character
local Character = LocalPlayer.Character
local Humanoid = Character:WaitForChild("Humanoid")
local Animation = Instance.new("Animation")
Animation.AnimationId = "ovdrassetid://18850100" -- WinAnimation01
local Animator = Humanoid:FindFirstChild("Animator")
local AnimationTrack = Animator:LoadAnimation(Animation)
AnimationTrack:Play()
RegisterEvaluationParallelCallback
Currently not supported.
Parameters
Value
InFunction
Return
void
Code Samples
StepAnimations
Currently not supported.
Parameters
number
InDeltaTime
Return
void
Code Samples
Events
See also
Character AnimationLast updated