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

How do you remove the chatbox?

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?

3 answers

✓ Accepted answer
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

7 comments

0

Just giving someone code doesn't help them learn the process any better. You should explain what you're doing - for future reference.

0

well sorry dont have to downvote

0

Yes I do or you don't learn anything, silly(: And downvoting me out of spite is a bit childish, don't you think?

0

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

0

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. 

0

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.

0

@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.

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.