How do I prevent these CoreGui yields from Roblox?

I keep getting these warnings in the output when testing my game and they are caused by Roblox itself. What can I do to prevent it? I have no solution to it so far, nor do I know what can possibly cause it.

I do not think there is a way to fix this, as you are unable to edit the Roblox CoreScripts and publish the changes.

1 Like

Instead of using waitforchild() I just use:

Repeat
     Wait()
     Local object = game.ReplicatedStorage:FindFirstChild(“object”)
Until object ~= nil
1 Like

That is true, but you aren’t experiencing the same issue or are you? It started recently (did not before) and does it every time I test the game.

You can’t really because you cannot edit core GUI scripts. It just means it’s possible to infinite yeild, but doesn’t mean it is.

@RiccoMiller As everyone says in this post, you cannot edit Roblox CoreScripts, so your solution will not and never work unless we can edit the CoreScript.

I’ve seen this problem countless of times in Studio and in-game, it seems like it depends on how fast you load in (I may be wrong). And there is nothing wrong with this code, as it is really needed for the client to interact.

2 Likes

Your solution won’t work because you cannot edit Roblox CoreScripts.