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

"Error"? In script. Infinite yield possible on 'Workspace:WaitForChild("Camera")' ?

Asked by 7 years ago

Infinite yield possible on 'Workspace:WaitForChild("Camera")'

Got this in yellow text. Confused to what it means. Or what to do.

1 answer

Log in to vote
1
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
7 years ago
Edited 7 years ago

The error means that using the WaitForChild function caused the script to yield more than 5 seconds.

This just means the object isn't there.

If you're trying to retrieve the Camera from a server script then switch to a LocalScript, because the camera can only be accessed by the client.

0
Don't forget the "CurrentCamera" object/ child w/in the Workspace. :P TheeDeathCaster 2368 — 7y
Ad

Answer this question