I want an animation to play if I have equipped it, can you fix this script?
local Tool = script.Parent Tool.Equipped:Connect(function(mouse, player) print("A tool was equipped") game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation) end)
You need to load the Animation id instead of the animation instance itself.
For example:
local Tool = script.Parent Tool.Equipped:Connect(function(mouse, player) print("A tool was equipped") local animationId = script.Parent.Animation.AnimationId game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(animationId) end)