PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

GetPlayingAnimationTracks

Returns an array of all AnimationTrack|AnimationTracks that are currently being played by the AnimationController.

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

Note this function will not return AnimationTrack|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)

Returns

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.