Open Asterune
AnimationService

AnimationService

Registers and retrieves animation clips by identifier.

Service
game:GetService("AnimationService")
Inherits
Instance
Replication
Never

Behavior

AnimationService registers and retrieves animation clips by identifier.

Summary

Members5
Methods5

Methods

Clip

AnimationService:Clip(clipId: string): AnimationClip?

A local KeyframeSequence used as the animation source.

Clips

AnimationService:Clips(): table

Returns the registered animation clips.

GetExecutionGroup

AnimationService:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

Register

AnimationService:Register(sequence: KeyframeSequence, key: string?): string

Registers a KeyframeSequence and returns its clip identifier.

Unregister

AnimationService:Unregister(clip_id: string): boolean

Removes a registered clip and returns whether it existed.

Inherited members

Inherited47

Instance