Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My animation wont play with the hand the tool is in?

Asked by
KevFX 2
3 years ago

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.

0
uhh you sent the same vid? acediamondn123 147 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

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()
0
thanks it worked. I had it set to action in the animation editor but it didn't work, but setting it in the script worked. KevFX 2 — 3y
Ad

Answer this question