Roblox Disable Chat

Hello, I want to disable the chat GUI beside the roblox icon. The chat has been disabled however the GUI beside the icon is still there. Does anyone know how to do it?

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)

Local script.

1 Like