This property can only be read from. Attempting to write to it will cause an error.
This item is not replicated across Roblox’s server/client boundary.
A read only property that returns true when the
AnimationTrack is playing.
This property can be used by developers to check if an animation is already playing before playing it (as that would cause it to restart). If a developer wishes to obtain all playing
AnimationTracks on a
AnimationController they should use
This code sample includes a simple function that will play an AnimationTrack if it is not playing, or otherwise adjust its speed and weight to match the new parameters given.
local function playOrAdjust(animationTrack, fadeTime, weight, speed) if not animationTrack.IsPlaying then animationTrack:Play(fadeTime, weight, speed) else animationTrack:AdjustSpeed(speed) animationTrack:AdjustWeight(weight, fadeTime) end end