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
This is how it looks on the player