Can't override tool animation

So I created a custom idle animation to override the hand sticking out animation when a tool is equipped.


But It ends up playing both the idle animation and hand sticking out. How do I make it so that it only plays the idle animation I made when idle while tool is equipped?

This is my local script:

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local Animator = Humanoid:WaitForChild("Animator",10)
local Mjolnir = script.Parent
local IdleAnimation = Instance.new("Animation")
IdleAnimation.AnimationId = "rbxassetid://6116718517"
local LoadIdleAnimation = Animator:LoadAnimation(IdleAnimation)
LoadIdleAnimation.Priority = Enum.AnimationPriority.Idle

Mjolnir.Equipped:Connect(function()
	LoadIdleAnimation:play()
end)

Well if you set the AnimationPriority to action, then it would override the default animation.

Now it overrides my walking animation too.

Are the legs animated in the animation?

Yep, is that where my issue lies?

I think so. If they are animated in your animation, the previous animations using leg (mainly the walking animation) will be overridden.

1 Like

Ah that solves it, thanks mr yellow man.

1 Like