Hello im looking for stopping the equipped animation so it stops when its unequipped, also this is a server script inside a tool because i followed a tutorial and it said that, but i dont know how to stop it
local tool = script.Parent
local idlea = tool.Handle.Idle
local shoota = tool.Handle.Shoot
local muzzle = tool.Handle.mzzle
tool.Equipped:Connect(function()
local character = tool.Parent
local humanoid = character.Humanoid
local idle = humanoid:LoadAnimation(idlea)
idle:Play()
end)
tool.Activated:Connect(function()
local character = tool.Parent
local humanoid = character.Humanoid
local shoot = humanoid:LoadAnimation(shoota)
shoot:Play()
muzzle.Transparency = 0.2
wait(0.2)
muzzle.Transparency = 1
end)
tool.Unequipped:Connect(function()
--Stop animation
end)

2 comments
what ? this wont solve OP the issue, idle is undefind in that scope (in Equipped) and tell me what you would use delay over wait ?
Did you even read my question?