Skip to main content

PlayStates

The play state of a Blockbench animation, detected with getPlayState().

Example:

function events.tick()
local isDancing = animations.myModel.dance:getPlayState() == "PLAYING"
models.myModel.discoBall:setVisible(isDancing)
end

All Play States

PlayStateDescription
STOPPEDThe animation isn't playing
PAUSEDThe animation is paused on at a specific time
PLAYINGThe animation is playing