AnimLayers
the blend layers of a character, indexed by layer
Layering an Action Over a Walk Cycle
Lifecycle: Server
The engine owns rows 1 to 4 and reports them read-only, so a script writes rows 5 to 8 and clears one by assigning nil.
Luau
game.Session.PlayerJoined:Connect(function(userId: number) local character = game.Session.CharacterOf(userId) if not character then return end local layers = character.AnimLayers layers[5] = { clip = "Wave", weight = 1, mask = game.Animation.Part.RightArm } layers[6] = nilend)