The script is supposed play an animation when the tool is equipped, and stop it when it's unequipped. Why does it not work?
local anim = Instance.new("Animation", game.Players.LocalPlayer.Character)
local animTrack = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(anim)
script.Parent.Equipped:connect(function()
animTrack:Play()
end)
script.Parent.Unequipped:connect(function()
animTrack:Stop()
end)
