I have a custom tool hold animation in a LocalScript and I put it inside of my tool but the animation does load it just has the default animation can someone help?
Some errors it has: 1 is not a valid member of Animation "Workspace.Koley_Moley.Physics Gun.Hold
Players.Koley_Moley.Backpack.Physics Gun.Hold script:15: attempt to index nil with 'Stop
SCRIPT:
local plr = game:GetService("Players").LocalPlayer local anims = (script.Parent.Hold) local loadedAnims = {} local tool = script.Parent local animator tool.Equipped:Connect(function(mouse) animator = plr.Character:WaitForChild("Humanoid"):WaitForChild("Animator") if not loadedAnims[1] then loadedAnims[1] = animator:LoadedAnimation(anims[1]) end loadedAnims[1]:Player() end)
tool.Unequipped:Connect(function() loadedAnims[1]:Stop() end)
And why does the ask question always say I have useless text in my titles and it is perfectly fine?