I have a tool. when you equip it it should play the idle animation I created, but it plays when I unequip it...
Script:
script.Parent.Equipped:Connect(function()
local idle = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Idle)
idle:Play()
end)
script.Parent.Unequipped:Connect(function()
local idle = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Idle)
idle:Stop()
end)
