Animations doesn't play for others when moving then casting attack?

  1. What do you want to achieve?
    I want my animations to play for everyone and not bug

  2. What is the issue?
    Whenever I cast my attack, it works when jumping or standing still. However, when walking then casting attack, it doesn’t show for others but it shows for the caster.

Here is how I do anims:

Local Script:

local animone = Instance.new("Animation")
animone.AnimationId = "rbxassetid://exampleid"
local anim1 = humanoid:WaitForChild("Animator"):LoadAnimation(animone)

event1:InvokeServer()
anim1:Play()
anim1.Stopped:wait()
event2:InvokeServer()

Server Script:

event1.OnServerInvoke = function()
-- Set characters humanoidrootpart bodyvelocity to 0,0,0 so they can't move
end

event2.OnServerInvoke = function()
-- do vfx and dash player and reset bodyvelocity
end

Animation plays for client, others, and server:
Staying Still: [https://gyazo.com/7dc169d5a5e1c6b14a2f1b05a70b85b2]
(https://gyazo.com/7dc169d5a5e1c6b14a2f1b05a70b85b2)
Jumping: https://gyazo.com/3f1c0d2b1ba3fe6164ffa43d2621c97f

Animation only plays for client:
Walking: https://gyazo.com/b5d4c2353effdcb98f040dbd8ab017d6

  1. What solutions have you tried so far?
    I’m not sure how to solve this issue.

What animation priority your animation have?

Try setting the priority to action, or movement. Maybe possibly idle?

I set it to action and it was like this.

I set it to movement but it didn’t help, as it still didn’t show when moving.

maybe try disabling all other animations when it plays.

I don’t think thats the solution

I found a solution, which is removing my custom “Animate” script in startercharacterscripts. But, those idle animations and etc I kind of need, but when I add them, it causes weird animation bugs when replacing my ids in it. But, when I remove the “Animate” Script in startercharacterscripts, every animation issue is solved. So my new problem is how to have custom idle animations and etc without breaking animations and using “Animate”.

Without this script, my problem is solved. But I need those idle animations. This is my new problem

Hmmm let me check more about animations priorities

Found out the problem! Using the “Animate” script I used an idle animation, which was priority set as action. It broke everything but its solution was to just set it to idle and looped. All of my animation problems such as moving then playing animations not working works now. If anyone encounter problems like this, check your “Animate” script if you have one. Thanks for everyone else for helping.image