Luduvo Contents
Theme
On this page

Animation

reads the markers an animation clip crossed since the last drain, and names the body parts a blend layer may move

Properties

1 member Access: read only

Part: {Head: number, Torso: number, LeftArm: number, RightArm: number, LeftLeg: number, RightLeg: number}

body part mask bits for AnimLayers rows

Methods

1 member Access: server only

DrainMarkers() -> ({{Entity: Instance, Clip: string, Marker: string}}, boolean)

drain the clip markers the sampler crossed, second result reports lost markers

Retrieving Animation Event Markers

Lifecycle: Shared

Markers are drained once per frame, and the drop count tells you when a tick spike lost some.

Luau
local markers, lost = game.Animation.DrainMarkers()if lost then	warn("Animation sampler dropped marker frames due to tick spike")endfor _, m in ipairs(markers) do	print(string.format("Clip %s triggered marker %s on %s", m.Clip, m.Marker, tostring(m.Entity)))end