Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

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...

0
Do post the scripts thanks. User#19524 175 — 5y
0
set your animation's priority to action to allow it to play over other animations awesomeipod 607 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
local ActiveTracks = Humanoid:GetPlayingAnimationTracks()
    for _,v in pairs(ActiveTracks) do
    v:Stop()
    end

lol! found something! :oopsy:

Ad

Answer this question