As of today we started to get this error in our game; breaking every loading screen. We believe its due to the emotes update changing the top bar. The specific code used to disable the top bar is:
local starterGui = game:GetService(‘StarterGui’)
starterGui:SetCore(“TopbarEnabled”, false)
Dev from the same project the thread is about. Pushed a quick and dirty fix to stop the loss of retention, posting it for anybody else who’s been impacted by this.
local starterGui = game:GetService(‘StarterGui’)
repeat wait() until pcall(function() starterGui:SetCore(“TopbarEnabled”, false) end)
I’m not sure if this might have disappeared from the developer hub, but you’re meant to pcall SetCore calls, and you might have to repeat them until they have been registered by the core scripts.
So what you’re seeing here is totally intentional behavior and not a bug. Always wrap SetCore calls with pcall and retry them.
That could well be, but they don’t offer the guarantee that SetCore will actually work without error. You typically don’t want to rely on properties that are not guaranteed.
It’s actually described here in the first section on the developer hub:
If you think that is not clear enough, you should consider writing a topic in #platform-feedback:developer-hub to have it improved.