So I made a tool where it works as a tool but if I equip the tool then instantly unequip it then the idle animation set for the tool starts playing? this is the code:
script.Parent.Equipped:Connect(function()
if not broken then
Equip:Play()
Equip.Stopped:Wait()
Idle:Play()
equipped = true
else
plr.Character.Humanoid:UnequipTools()
end
end)
script.Parent.Unequipped:Connect(function()
Idle:Stop()
Equip:Stop()
equipped = false
end)