I have a problem with my current loading script, where when the game starts it gives an error, resulting that the player isn’t able to load in.
I’m using WaitForChild to make sure that all object are loaded in such as lobby etc. it works fine mostly, but it does give me error sometimes without reason.
local wfc = game.WaitForChild
local Lobby =wfc(workspace, "Lobby", 10)
local mainMenuCameraPart=wfc(Lobby, "MainMenuCamera", 10)
If I don’t use WaitForChild it will also sometimes load the script faster before the Instances are replicated also resulting in errors.
I also used the same thing some lines above, and they never return errors, but when using waitforchild at the mainmenu camara part, it does.