Animator
Loads animation tracks and animation graphs for a character or model.
- Creatable
Instance.new("Animator")- Inherits
- Instance
- Replication
- Standard
Behavior
Animator loads animation tracks and animation graphs for a character or model.
Summary
Returns this instance if it is an ExecutionGroup.
Returns the animation tracks currently playing on this animator.
Returns the animation graph players currently playing on this animator.
Loads an Animation and returns an AnimationTrack.
Loads an AnimationGraph and returns an AnimationGraphPlayer.
Fires when an animation track starts playing.
Methods
GetExecutionGroup
Animator:GetExecutionGroup(): ExecutionGroup?Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.
GetPlayingAnimationTracks
Animator:GetPlayingAnimationTracks(): tableReturns the animation tracks currently playing on this animator.
GetPlayingGraphs
Animator:GetPlayingGraphs(): { AnimationGraphPlayer }Returns the animation graph players currently playing on this animator.
LoadAnimation
Animator:LoadAnimation(animation: Animation): AnimationTrackLoads an Animation and returns an AnimationTrack. Call the track's Play method to start playback.
LoadGraph
Animator:LoadGraph(graph: AnimationGraph): AnimationGraphPlayerLoads an AnimationGraph and returns an AnimationGraphPlayer.
Events
AnimationPlayed
Animator.AnimationPlayed: RBXScriptSignalFires when an animation track starts playing.
Inherited members
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying