
Hi.
I need help with this error I keep seeing in the error report.
I’ve looked everywhere but I can’t see where it could be coming from.
My game doesn’t use voice chat and none of my scripts call TopBarApp.
I’m using a modified PlayerModule for a custom shiftLock but I haven’t found a call to TopBarApp in the modulesScripts either.
Does anyone know about this problem?
Thanks for your help.
I think this is from the Roblox Default Top Bar. This is very common to see the warning because it haven’t load the game yet and it tries to find that gui. No issue.
That’s good to hear then, I’ve been getting these errors more and more over the past few days though ![]()
Well, I thought it was a script issue, so I checked them all, but my last hope is that it’s the Roblox top bar GUI.
“Infinite yield possible on WaitForChild” indicates that the part you are trying to find doesn’t exist yet. By “Infinite yield possible”, this means in your script, there is a chance that it would wait infinitely. So anything under WaitForChild’s thread will never run until the instance is found.
This is just a warning, not an error. A warning doesn’t do anything. It just shows the output that there seems to be something wrong with your script. An error(a red circle with an exclamation mark(!)) stops the current thread in your script.
If you don’t want to do this, you can just do the following
local instance = CoreGui:FindFirstChild("TopBarApp")
-- Your code here
if not instance then
repeat
task.wait()
until instance
end
-- Your code here
This could be a solution but I don’t see where to put this code.
Where to find CoreGui?
I’m also having the same warning appearing in my error logs. I believe that whatever is happening is also causing some of my core localscripts to break, resulting in my game being virtually unplayable.
It somehow causes issues finding or using different guis during runtime. If anyone has any additional info regarding how to prevent this, I would appreciate it!
instance’s value doesn’t update anywhere in the loop, that’s just gonna loop forever if TopBarApp is not found.
Not really a whole lot you can do. I would ignore it, but if you believe it is somehow affecting game functionality then perhaps try disabling some beta features as in the past I’ve been thrown errors as Roblox has auto-enabled me for beta features. Take a look and see if it happens in a blank BasePlate. Could be worthy of Bug Reports if it is affecting really affecting your game.
You can’t interact with CoreGui like this. It is just a warning, true, but infinite WaitForChild will cause the rest of the script to never run, and that could cause issues. Also, that code is essentially what WaitForChild does and will also just infinitely yield until the object exists, which it will never since the instance variable isn’t being changed