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

How do you remove the chatbox?

Asked by 9 years ago

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

Log in to vote
-3
Answered by 9 years ago
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
0
Just giving someone code doesn't help them learn the process any better. You should explain what you're doing - for future reference. Goulstem 8144 — 9y
0
well sorry dont have to downvote NinjoOnline 1146 — 9y
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? Goulstem 8144 — 9y
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 NinjoOnline 1146 — 9y
View all comments (3 more)
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.  Perci1 4988 — 9y
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. TheReapersComing 0 — 9y
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. BosswalrusTheCoder 88 — 9y
Ad
Log in to vote
1
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
9 years ago

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)
Log in to vote
-1
Answered by 9 years ago

Game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)

Use that in a LocalScript.

Answer this question