What do you want to achieve?
I want my animations to play for everyone and not bug
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
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”.
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.