You can write your topic however you want, but you need to answer these questions:
Hey everyone, I have an animation that i’d like to have priority over any other animation including movement. So when creating the animation I set its animation priority to Action 4 which is the highest. The problem is that whenever I move during the animation it gets canceled. Below is an example of the animation when the player doesnt move and the animation plays as intended, and when the player moves and the animation gets canceled.
Working as intended when the player doesnt move
Animation Canceled by movement
I’d like for the animation to fully play even if the player is moving. I’ve tried the various Action priorities but none of them have an effect even action 4. Any tips would be appreciated, thanks.
How are you playing the animation? Are you creating your own AnimationTrack for this or perhaps just mutating the default animator tracks?
I’m playing the animation with an animation that is parented to the handle of the tool with the following code
local Anim = MyHumanoid:LoadAnimation(Tool:FindFirstChild("Bomb"))
if Anim then
Anim:Play()
Anim:AdjustSpeed(0.5)
Have you tried manually setting the priority of the track before you play it? Do you use a custom implementation for controlling character movement?
I just gave setting the priority in the script before playing a shot and the problem persists.
Here’s what I tried.
local Anim = MyHumanoid:LoadAnimation(Tool:FindFirstChild("Bomb"))
if Anim then
Anim.Priority = Enum.AnimationPriority.Action4
Anim:Play()
Anim:AdjustSpeed(0.5)
I also don’t alter the players movement in any way.
I can’t recreate Action4 being interrupted by character movement. Could you show any other lines where you rely on the animation? (markers, animation finished events, etc)