Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would I find an animation in a player and disable it?

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?

2 answers

✓ Accepted answer

This nifty function is your answer, good sir.

2 comments

0

But how do I stop tracks from there? I don't understand what it means by " Returns an array of the AnimationTracks currently being played on the Humanoid." An Array? What's that mean

1

An array is essentially a table.

This MIGHT do it:

--You can use a name or Id to reference the animation you want.
Name="Test"
ID=1111111111 
for i,v in pairs(player.Character.Humanoid:GetPlayingAnimationTracks ()) do
	if v.Animation.Name==Name or v.Animation.AnimationId==ID then
		v:Stop()
	end
end
	

This discussion is preserved as it was. New answers, comments, and votes are closed.