Say the animation is already implemented. So I have a function that when something happens the animation goes away. How would I index the animation to delete it?
This nifty function is your answer, good sir.
This MIGHT do it:
1 | --You can use a name or Id to reference the animation you want. |
2 | Name = "Test" |
3 | ID = 1111111111 |
4 | for i,v in pairs (player.Character.Humanoid:GetPlayingAnimationTracks ()) do |
5 | if v.Animation.Name = = Name or v.Animation.AnimationId = = ID then |
6 | v:Stop() |
7 | end |
8 | end |