This means the core scripts haven’t finished loading yet. You will have to wrap setcore in a pcall and keep trying until it doesn’t error and goes through.
You could try this solution:
local coreCall do
local MAX_RETRIES = 8
local StarterGui = game:GetService('StarterGui')
local RunService = game:GetService('RunService')
function coreCall(method, ...)
local result = {}
for retries = 1, MAX_RETRIES do
result = {pcall(StarterGui[method], StarterGui, ...)}
if result[1] then
break
end
RunService.Stepped:Wait()
end
return unpack(result)
end
end
coreCall('SetCore', 'ResetButtonCallback', false)
I post this every time this comes up. Always keep a util…
or
--wait()
game.StarterGui:SetCore("TopbarEnabled", false)
Leave the wait commented:
SetCore: TopbarEnabled has not been registered by the CoreScripts
Uncomment the wait, no error.
Am I the only one having this problem? (My brother did as well).
2 Likes