Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

TopBar Not Disabling???

03:57:57.869 - SetCore: TopbarEnabled has not been registered by the CoreScripts

03:57:57.870 - Script 'ReplicatedFirst.LocalScript', Line 4

03:57:57.871 - Stack End

Is the error for the script without the pcall. It also doesn't get rid of the top bar.

wait()
script.Parent:RemoveDefaultLoadingScreen()
	local starterGui = game:GetService('StarterGui')
	starterGui:SetCoreGuiEnabled("All" ,false)
	starterGui:SetCore("TopbarEnabled", false)

The script with the pcall also doesn't work. there is no error as expected but it doesn't get rid of the top bar like it should.

wait()
script.Parent:RemoveDefaultLoadingScreen()
pcall(function()
	local starterGui = game:GetService('StarterGui')
	starterGui:SetCoreGuiEnabled("All" ,false)
	starterGui:SetCore("TopbarEnabled", false)
end)

Why is it doing this????

1 answer

✓ Accepted answer

The issue is the SetCore call.

You have to repeatedly try it until it works, for some reason:

wait()
script.Parent:RemoveDefaultLoadingScreen()
local starterGui = game:GetService('StarterGui')
starterGui:SetCoreGuiEnabled("All" ,false)
while not pcall(function() starterGui:SetCore("TopbarEnabled", false) end) do wait() end

1 comment

0

Forgot I had posted this question. it seems that I just needed an extra wait() between line 2 and 3 of my pcall script above.

This discussion is preserved as it was. New answers, comments, and votes are closed.