Recurring error TopBarApp

image
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.

1 Like

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 :sob:

1 Like

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!