Here is the script I attempted to make:
script.Parent.Equipped:Connect(function(Mouse) local animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation) animation:Play() end)
So when the tool is equipped the animation should play.
game.Players.LocalPlayer
only works in a localscript, make it an localscript
you have to make 2 variables, what i mean is
local animation = script.parent local animaiontrack = animation:LoadAnimation()