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

How do i fix this? i keep getting these output messages when i launch the game

Asked by 6 years ago

How to fix : Humanoid is not a valid member of Workspace

and

    Infinite yield possible on 'Workspace:WaitForChild("Humanoid")
1
It means one of your scripts is searching for a humanoid in the workspace. abnotaddable 920 — 6y

1 answer

Log in to vote
5
Answered by 6 years ago

As per your one line script, WaitForChild searches the workspace until it finds it. In fact WaitForChild will keep searching until it is added. To fix this, use FindFirstChild()

Oh by the way, it also means that Humanoid isn't in workspace.

Ad

Answer this question