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

Delete the chat?

I looked this up but this code does not work for some reason:

local StarterGui = game:GetService('StarterGui')
 
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)

2 answers

✓ Accepted answer

To use SetCoreGuiEnabled, it must be a LocalScript within a Player (ex: Backpack, PlayerGui, etc.). The script you have is fine, though.

1 comment

0

Thanks I did not realize it had to be in a player!

The script is okay, but this needs to be in a LocalScript.

I suggest putting it inside StarterPlayerScripts

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