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
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.
Here’s the properties of Animation.
I have tried to set the assetId via script which hasn’t worked either.