Animation Error

Hello Developers! :wave:

I made an animation and I get an error saying:

Screenshot (68)

Code :

Screenshot (72)

It’s a local script in starterplayerscripts and an animation called “Bird Animation” inside the local script. Any response is appreciated! :smiley:

1 Like

replace the “char” variable with this:

local char = player.Character or player.CharacterAdded:Wait()

This waits for the character to load if it doesn’t exist

Can’t I just say player:WaitForChild(“Character”)?

1 Like

No, because Character is a property, not a child

It doesn’t work, now it says, Humanoid is not a valid member of Model “Workspace.Mysterious_Myth11”

1 Like

Do char:WaitForChild("Humanoid") since humanoid is a child

3 Likes

Thanks my animation worked! :smiley:

1 Like