Setcore gui enabled on chat makes it disappear

I am disabling my chat for a property view UI using :SetCoreGuiEnabled()


However, when i exit back out, The chat is not there at all.

I am setting and resetting it like so:

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
--A few lines of code later (in a different script)
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true)

Video of what’s happening: robloxapp-20211204-1705292.wmv (1.8 MB)

I’ve tried looking everywhere for a solution and couldn’t find one.

1 Like

The chat button is there, try clicking it.

I have clicked it, Here’s a video of what i mean:
robloxapp-20211204-1705292.wmv (1.8 MB)

Does anyone have a solution? It’s been bugging me for a few weeks now

1 Like

I have had the same issue aswell. Hope there is a solution

Have you disabled default chat in the chat itself? The error is not in the script.

Nope, default chat is enabled:
image
this is the code i have:

for i, v in pairs(plr.PlayerGui:GetChildren()) do
		if v:IsA('ScreenGui') then
			v.Enabled = false
		end
	end
	
	game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)

Then in a different script

Buttons.Exit.MouseButton1Click:Connect(function()
	Holder:TweenPosition(UDim2.new(0.5,0,1.5,0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.4)
	Tween:Cancel()
	
	Camera.CameraType = Enum.CameraType.Custom
	plr.Character.Humanoid.WalkSpeed = 16
	wait(0.4)
	
	script.Parent.Enabled = false
	script.PromptObj.Value.Enabled = true
	
	for i, v in pairs(plr.PlayerGui:GetChildren()) do
		if v:IsA('ScreenGui') then
			v.Enabled = v:GetAttribute('BaseUI')
		end
	end
	
	game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true)
	
	script.Disabled = true
end)

I’ve figured out the issue, Stupid mistake by me

if v:IsA('ScreenGui') then
	v.Enabled = false
end

This disabled the functionality of the chat.