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

Stop all other animations on a local player before starting a new one?

So, I'm trying to basically, if someone clicks on a part is plays an animation that's been added to the character. But, after testing, if you jump/the idle looking around animation/walk while clicking the part, it'll play both animations.. Is it possible to stop all other animations in a localscript? I've tried everything I know, yet nothing seems to work...

2 comments

0

Do post the scripts thanks.

0

set your animation's priority to action to allow it to play over other animations

1 answer

local ActiveTracks = Humanoid:GetPlayingAnimationTracks()
	for _,v in pairs(ActiveTracks) do
	v:Stop()
	end

lol! found something! :oopsy:

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