Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Delete the chat?

Asked by
NRCme 0
8 years ago

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

Log in to vote
4
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
8 years ago

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

0
Thanks I did not realize it had to be in a player! NRCme 0 — 8y
Ad
Log in to vote
1
Answered by
iNicklas 215 Moderation Voter
8 years ago

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

I suggest putting it inside StarterPlayerScripts

Answer this question