My game used to begin and work perfectly with no errors until this weeks Studio update that allows you to test client/server.
I'm getting these errors I've never gotten before and I dont know why:
17:46:11.797 - Infinite yield possible on 'Players.ShinyGriffin:WaitForChild("PlayerGui")' 17:46:11.800 - Stack Begin 17:46:11.801 - Script 'Players.ShinyGriffin.PlayerScripts.CameraScript.RootCamera', Line 12 17:46:11.802 - Stack End 17:46:11.804 - Infinite yield possible on 'Players.ShinyGriffin:WaitForChild("PlayerGui")' 17:46:11.806 - Stack Begin 17:46:11.807 - Script 'Players.ShinyGriffin.PlayerScripts.ControlScript', Line 43 17:46:11.808 - Stack End 17:46:17.049 - Infinite yield possible on 'Players.ShinyGriffin.PlayerGui:WaitForChild("Chat")' 17:46:17.053 - Stack Begin 17:46:17.054 - Script 'Players.ShinyGriffin.PlayerGui.TitleScript', Line 6 17:46:17.056 - Stack End
Why is this happening? I don't know why Roblox would implement such a game-breaking update to studio. It seems like the scripts load before anything else does now.
All of these scripts worked perfectly without error for the past year.
Is anyone else having these issues?
By default, Roblox will warn you of some actions that you are doing. These will appear in orange text, it is identical to doing warn(text)
. This warning in paticular is nothing to worry about.
Infinite Yield Possible
just means that your script can hang forever if the instance it's waiting for does not load/does not exist. That's why it's implied in the name, WaitForChild. This warning will appear by default unless you use the 2nd arguement of WaitForChild
. The 2nd arguement is not required.