Tool animation won't load

The animation for my tool won’t load for some reason. Please help.

Script:

local plr = script.Parent.Parent.Parent
local char = plr.Character

local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=14432455972"
animation = char.Humanoid:LoadAnimation(animation)
animation.Priority = Enum.AnimationPriority.Action

local plr = script.Parent.Parent.Parent


script.Parent.Equipped:Connect(function()
	animation:Play()
end)

script.Parent.Unequipped:Connect(function()
	animation:Stop()
end)

can you say how does a player get the tool ?
like do you parent it from ReplicatedStorage/ServerStorage to player’s Char or it get’s equipped from inventory ?

The tool is in starter pack at the moment.

you have 2 plr local variables.

1 Like

Nevermind, I have resolved the problem.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.