Im making a tool where u equip it, it plays a different idle animation, heres the script.
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local choose = 1
local tool = script.Parent
local idleAnim = hum:LoadAnimation(script.Idle)
tool.Equipped:Connect(function()
idleAnim:Play()
end)
tool.Unequipped:Connect(function()
idleAnim:Stop()
end)
inside the tool is the local script, and the animation inside the script named "Idle"

3 comments
this is r15 btw
no errors, the priority is idle, and it is looped