I’m trying to animate the tool that I made and am using this piece of code here:
local animation = animator:LoadAnimation(script.Parent:WaitForChild('Animation'))
animation.Priority = Enum.AnimationPriority.Action
script.Parent:FindFirstAncestorOfClass("Tool").Activated:Connect(function()
animation:Play()
end)
But get the following error:
I have based all this animation code off of the documentation and as far as I known Nothing here is depricated and is probably still supported.