I have created this script with refernce from wiki.roblox.com
local StarterGui = game:GetService('StarterGui') StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
I am trying to disable chat but it will only disable when I click test run. It will not disable in the real game when you click play?
Anyone explain?
As SetCoreGuiEnabled explains, it must be a LocalScript. Note that LocalScripts can only run in certain places, as explained in the wiki entry for LocalScript.