So I made a throwing animation for my game. I have the scripts and the animation and on an npc, it works perfectly fine. When I shift it over to a player however, it doesn't work. here is my localscript:
character = game.Players.LocalPlayer.Character
game.ReplicatedStorage.Animation:Clone().Parent = character
local animation = character.Humanoid:LoadAnimation(character:WaitForChild("Animation"))
animation:Play()
in the output it says LoadAnimation requires the Humanoid object (Faazo.Humanoid) to be a descendant of the game object What does this mean? The humanoid isn't a descendant of game? It is though. Please help.

1 comment
This means you are trying to load a animation before the humanoid is part of the game ie in the workepace. You can do a small check for when the player humanoid is in the workspace