How the animation looks: https://gyazo.com/fa73002a6e2a7642acb71000e7a3bc37
How it is supposed to look: https://gyazo.com/fa73002a6e2a7642acb71000e7a3bc37
Code:
local animation = game:GetService("Players").LocalPlayer.Character:WaitForChild("Humanoid"):LoadAnimation(script.Animation)
animation:Play()
animation.Looped = true
Can anybody help? I tried everything I know its irritating.
Thanks.
For some reason, the link is blocked for me. But I think I have a basic idea of what is going on because I was there too.
So, I think the issue is your animation is being overlapped the hold tool animation and since, I'm assuming, the hold tool animation has higher priority than your animation, your animation is not being played properly.
What you can do is set your animation's AnimationPriority
to Action
, the highest priority. You can set it with the Animation Editor or if you want, with script.
Here's how I would go about it in script; hope this helps!
local animation = game:GetService("Players").LocalPlayer.Character:WaitForChild("Humanoid"):LoadAnimation(script.Animation) animation.Looped = true animation.Priority = Enum.AnimationPriority.Action animation:Play()