We use cookies on this site to enhance your user experience
Collapse Sidebar


Returns a table of all AnimationTracks that are currently being played by an AnimationController.

A typical use for this function is stopping currently playing tracks using AnimationTrack/Stop.

Note this function will not return AnimationTracks that have loaded but are not playing. If the developer wishes to track these they will need to index them manually. See below for one example of how this could be achieved:

local animationTracks = {}
local track = animationController:LoadTrack(animation)
table.insert(animationTracks, track)


Return Type Summary

An array of playing AnimationTracks.

Code Samples

Stop All Tracks

This sample contains a quick function to stop all playing AnimationTracks on an AnimationController or Humanoid.

local function stopAllTracks(animationController)
	for _, track in pairs(animationController:GetPlayingAnimationTracks()) do