Hiding CoreGuis does not work

for soem reason this does not work.

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false) 
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false) 
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false) 
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false) 
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false) 
game.StarterGui:SetCore("TopbarEnabled",false)

local Player = script.Parent
local GUI = script.Parent.Parent.PlayerGui.LoadingGui
local Check = GUI.MainFrame

Check:GetPropertyChangedSignal("BackgroundTransparency"):Connect(function()
	if Check.BackgroundTransparency == 1 then
		game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, true) 
		game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, true) 
		game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true) 
		game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true) 
		game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true) 
		game.StarterGui:SetCore("TopbarEnabled",true)
	end
end)

its not reverting back to robloxs orginal mainframe.

Its suppose to hide some of ths uis roblox put in then turn them visible again.

1 Like

your setting them to β€œon” in the first lines of your code, since i see a (name, true), true or false determines whether its on or not.

Check:GetPropertyChangedSignal("BackgroundTransparency"):Connect(function()
	if Check.BackgroundTransparency == 1 then
		game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false) 
		game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false) 
		game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false) 
		game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false) 
		game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false) 
		game.StarterGui:SetCore("TopbarEnabled",false)
	end
end)

oof sorry guys the first section should be false. I edited it.