How to stop an animation without access to the AnimTrack?

So usually you would stop an animation like so:

local Animation = Instance.new("Animation")
Animation.AnimationId = "http://www.roblox.com/Asset?ID=SomeID"
local AnimTrack = Char.Humanoid:LoadAnimation(Animation)
AnimTrack:Play()
wait(1)
AnimTrack:Stop()

But how would you stop the Animation without access to the AnimTrack?

2 Likes

http://wiki.roblox.com/index.php?title=API:Class/Humanoid/GetPlayingAnimationTracks

It guarantees access rather than providing a solution without.

5 Likes

Totally forgot about this function! Thanks for the help.