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

Trying to disable all with :SetCoreGuiEnabled but chat isn't disabling, any help?

2 answers

Make sure that your script is a localscript in StarterPlayerScripts.

Create a Script and put it in your workspace, now that you have your script, copy and paste this code into it.


script.Parent = game.ServerScriptService

game.Players.PlayerAdded:connect(function(plr)
	local dis = script:FindFirstChild("Disable"):Clone()
	if dis then
		local plrGui = plr:WaitForChild("PlayerGui")
		dis.Parent = plrGui
		dis.Disabled = false
	end
end)

After this

Create a LocalScript inside of your script and name it "Disable"

Now that you have your LocalScript, copy and paste this code into it!

game.StarterGui:SetCoreGuiEnabled(3, false)

I've tested this in game and it works :)

But if you didn't know, Go to your game and go to the configure page -

On the configure page you will be able to get rid of the chat gui by going under permissions and making the allowed chat type bubble chat.

1 comment

0

Both of your comments, don't work.

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