#How do I make the tool idle animation not override the current playing animation?

1 messages · Page 1 of 1 (latest)

glacial creek
#

I know that this should probably be in Studio-Help but i am legitly struggling with scripting animations more than anything else at the moment

autumn scaffold
#

Are they different priorities?

onyx marsh
#

you can stop the other animations when playing the idle one

#

I have had this problem before, and I made a function that checks if any other animations are playing and if they are, then they get stopped and then play the idle animation

#
local function PlayAnim(anim, tween)
    if CurrentAnim and CurrentAnim.IsPlaying and CurrentAnim ~= anim then
        CurrentAnim:Stop()
    end
    
    if not anim.IsPlaying then
        anim:Play()
        if tween then tween:Play()
            CurrentAnim = anim
        end
    end
end```

ignore the tween part
onyx marsh
autumn scaffold
frozen spire
#

if animation priorities are used correctly they should overwrite other animations properly