LoadAnimation requires the asset id to not be empty

Hello! I’m working on a gas mask. I obviously want it to animate on tool click which I believe it’s gotten to that point but stops at the load animation part.

Here’s the error message
image

script.Parent.Equipped:Connect(function(Mouse)
	Mouse.Button1Down:Connect(function()
		local animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent:WaitForChild("Animation"))
		local animation2 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent:WaitForChild("Animation2"))
		animation:Play()
	end)
end)

And here’s the script.
Here’s the tool.
image
Here’s the properties of Animation.
image

I have tried to set the assetId via script which hasn’t worked either.

What about Animation2? You also load that one, unusing it…?

1 Like

Oh, that didn’t even occur to me, let me try that

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