Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

LoadAnimation requires the Humanoid object to be a descendant of the game object problem?

Asked by 6 years ago

So I'm new at scripting, and I've been watching tutorials on Youtube. In every single one, they tell me to type,

local Animation =
game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Animation1)
wait (3)
Animation:Play()

But every single time I try this, I always get this error: LoadAnimation requires the Humanoid object (Cloud_Razer.Humanoid) to be a descendant of the game object. I've read some sites to do a workaround, but never describe how to do it. Can you help out?

0
Try adding this before the current code, game.Players.LocalPlayer:WaitForChild(“Humanoid”) frostysubatomiczero 51 — 6y

Answer this question