Skip to content

Animations

The Animations library was created to provide a quick and easy way of handling local animations.


Variables

  • Cache: table used to cache animation data

Functions

Setup(Data | Table, Controller)

Clears the previous cache and initializes the specified animations in the specified controller. The provided animation ids can be strings or numbers.

local Data = {
    Idle = "rbxassetid://507766388",
    Walk = 507777826
}

Animations:Setup(Data, script.Parent.Humanoid)

StopAll(...)

Stops all cached animations with any specified variadic arguments.

Stop(Anim | string, ...)

Stops the specified animations with any specified variadic arguments.

Play(Anim | string, ...)

Plays the specified animations with any specified variadic arguments.

AdjustSpeed(Anim | string, ...)

Adjusts the speed of the specified animations with any specified variadic arguments.

AdjustWeight(Anim | string, ...)

Adjusts the weight of the specified animations with any specified variadic arguments.

Back to top