Having a problem with this Tool Animation script I did bc it won’t even play- nor play the walking animation. can anyone help me with this one?
local Humanoid = script.Parent.Parent.Parent:WaitForChild("Humanoid")
local tool = script.Parent.Parent
local anim = Instance.new("Animation")
anim.AnimationId = 'https://www.roblox.com/Assest?ID=17648624553'
local track = Humanoid:LoadAnimation(anim)
local animWalk = Instance.new("Animation")
animWalk.AnimationId = 'https://www.roblox.com/Assest?ID=17648645407'
local trackWalk = Humanoid:LoadAnimation(animWalk)
track.Priority = Enum.AnimationPriority.Action
trackWalk.Priority = Enum.AnimationPriority.Action
Humanoid.Running:Connect(function(speed)
if speed > 0 then
track:Stop()
trackWalk:Play()
else
trackWalk:Stop()
track:Play()
end
end)
tool.Equipped:Connect(function()
track:Play()
end)
tool.Unequipped:Connect(function()
track:Stop()
trackWalk:Stop()
end)