So I'm making a game, and I was wondering if you know how to remove the chatbox where all the chats go in so once the player joins it removes?
How do you remove the chatbox?
3 answers
Game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
Put this in a LocalScript inside the StarterGui and it should make your chat disappear
Make sure to accept this answer if it has helped you.
- NinjoOnline
The ChatBox is a CoreGui coreguis can only be manipulated through startergui, with a method called SetCoreGuiEnabled.
The SetCoreGuiEnabled method takes in two arguments. The first one is what coregui to alter.. which can be identified by either Enums, numbers, or strings.
"PlayerList" - Enum.CoreGuiType.PlayerList - 0
"Health" - Enum.CoreGuiType.Health - 1
"Backpack" - Enum.CoreGuiType.Backpack - 2
"Chat" - Enum.CoreGuiType.Chat - 3
"All" - Enum.CoreGuiType.All - 4
The second argument is going to be a bool - true or false - and it stands for whether or not to set the coregui enabled.
So the one you're going to alter is 'Chat'. And you want it turned off. So the first argument is going to be "Chat" and the second is going to be false.
game.StarterGui:SetCoreGuiEnabled('Chat',false)
Game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
Use that in a LocalScript.
This discussion is preserved as it was. New answers, comments, and votes are closed.

7 comments
Just giving someone code doesn't help them learn the process any better. You should explain what you're doing - for future reference.
well sorry dont have to downvote
Yes I do or you don't learn anything, silly(: And downvoting me out of spite is a bit childish, don't you think?
well I answered the question didnt I? He asked how, and I presented the answer. People here half the time want an answer not oh do this for that and this causes that, they just want a straight up here you this will work
Please follow these guidelines: https://scriptinghelpers.org/help/how-post-good-questions-answers Also I should mention that even if people just want code (which is debatable) it is still better to explain your answer to help people learn and apply that code in other situations.
See this is why im starting to dislike the site. He gave me the correct code, and giving out code sometimes does help. He told me what to do, it's basically all I needed just an algorithm.
@TheReapers it's better if he explains it. Then you will understand in the future how to do it instead of just constantly looking at this code.