Tool Animation Not Working, Only Character Animation

My tool animation will not work properly, It is an idle sword animation. I’ve looked for solution and never got a clear answer. To clarify, the animation I have for the tool does not work, but the character animation I have set with the tool does.


local tool = script.Parent
local idleanim = script.Idle
local player = game.Players.LocalPlayer
local char = player.Character
local hum = char:FindFirstChild("Humanoid")
local animator = hum:FindFirstChild("Animator")
local rightArm = char:FindFirstChild("Right Arm")

tool.Equipped:Connect(function(mouse)
	local idleTrack = animator:LoadAnimation(idleanim)
	local m6d = Instance.new("Motor6D")

	m6d.Parent = rightArm
	m6d.Part0 = rightArm
	m6d.Part1 = tool.Handle
	
	idleTrack:Play()
end)

This is how it looks in moon animator
image

This is how it looks on the player

image

1 Like

The animation could have been overridden by another animation.

I thought of that, but no animations were playing when the idle was on.