I have a massive problem on my hands

Yesterday, I was making a game, and everything worked great, the game was 100% unbreakable. Now, today, for some reason, when I run my game, I get things in the output coming from my scripts, such as:

HOWEVER, I have proof that these things, such as TownPart, are, in fact, a valid member of workspace:
image

Does anyone know why the heck these errors are showing up? How can I fix these errors?

Other Notes

These errors are coming from LocalScripts within StarterGui and StarterPack.

2 Likes

Are you using WaitForChild for those items?

1 Like

No, I am not. But it worked yesterday for some reason.

Basically you were lucky, you should use it

1 Like

Expanding on what @ForegoingTyler12943 said. Anytime you are using LocalScripts make sure you are using :WaitForChild. Since unlike the server, the client can often load scripts in before the workspace is loaded.

This issue will often only be present in LocalScripts.

2 Likes

Thanks for the elaboration, @xZylter!

1 Like