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

How to play an Animation that cannot be interuppted?

I tried a lot of things but cant figure it out. Right now im just playing an animation and making sure nothing interrupts it but thats a bad idea things still interrupt it and are MEANT to interrupt it in my game, how can I make it truly uninterruptible, unless I later make it interruptible again with the same script?

All help is appreciated pls halp me :<

2 comments

0

not interruptable in what way? Not by other animations? For that you would make a value in Humanoid for example saying that this animation is currently playing, don't play others, else if not interrupted by roblox built-in character animaetions (like idle) you just need to set LoadedAnimation.Priority = Enum.AnimationPriority.Action (Not sure if the enum name is right), 'Action' is the highest.

0

I dont want any form of movement or being hit or anything to stop the animation, I want it to play the entire animation without ever stopping

1 answer

The Priority property of an AnimationTrack defines if other animations should be played while this animation is playing. If you want no animation to ever interrupt this animation, set the Priority property to Enum.AnimationPriority.Action.

2 comments

0

but if a player hits another player that is playing an animation with highest priority, will the animation stop?

0

So apparently your kind of right but it can still be interrupted by other high priorities. So to fix it, in the ani.srion editor, i made the event priority action and then ezported it and then it worked! It never gets interrupted unless another animation like that plays, so apparantly just doing that with a script isnt enough, i dont know why, for future reference use this

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