This is a very simple script that is supposed to stop an animation when I unequipped a tool. T
script.Parent.Unequipped:connect(function()
local idle = script.Parent.Parent.Humanoid:LoadAnimation (script.Idle)
idle:Stop()
end)
It give me an error "Humanoid is not a valid member of backpack". If thats true, then why does this work?
script.Parent.Equipped:connect(function()
local idle = script.Parent.Parent.Humanoid:LoadAnimation (script.Idle)
idle:Play()
end)
If you can help, that would be much appreciated.

2 comments
Ok. The script seems to not have an error, but the animation is not stopping now...
Make sure the animation isnt looped.