Hello developers my idle animation for a tool will not play Its priority is set to “Action”, here is my local script:
script.Parent.Equipped:Connect(function()
local anim = script.Parent.Idle
local loadedanim = script.Parent.Parent.Humanoid:LoadAnimation(anim)
loadedanim:Play()
end)
script.Parent.Unequipped:Connect(function()
local humanoid = game.Players.LocalPlayer.Character.Humanoid
for _, playingTracks in pairs(humanoid:GetPlayingAnimationTracks()) do
playingTracks:Stop(0)
end
end)