Here the ErRoR = 20:30:03.523 - Players.m6xw.Backpack.Weight.Animation:3: attempt to index nil with 'AnimationId'
AnD ThE sCrIpT :
local tool = script.Parent local anim Instance.new("Animation") anim.AnimationId = "rbxassetid://4928303202" local track tool.Activated:Connect(function() track = script.Parent.Parent.Humanoid:LoadAnimation(anim) track.Priority = Enum.AnimationPriority.Action track.Looped = false track:Play() end) tool.Unequipped:Connect(function() if track then track:Stop() end end)
Hello.
Solution:
You forgot the "=" while making a variable.
Fixed Script:
local tool = script.Parent local anim = Instance.new("Animation") anim.AnimationId = "rbxassetid://4928303202" local track tool.Activated:Connect(function() track = script.Parent.Parent.Humanoid:LoadAnimation(anim) track.Priority = Enum.AnimationPriority.Action track.Looped = false track:Play() end) tool.Unequipped:Connect(function() if track then track:Stop() end end)