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

Removing chat and playerlist.

I looked for the Wiki on this hoping it would explain all to me. This is the one line it gave.

game.StarterGui:SetCoreGuiEnabled("All", false)

I am sure it would work but I want to know how it works

3 answers

✓ Accepted answer

There isn't really a lot about it. Basically, you tell the Roblox API to disable "All" CoreGUIs it can disable. You can also enter, for example "Chat" - then it will only disable the chat. The false argument means the GUI is disabled.

4 comments

1

Yeah ok. So if you wanted to make your own chat service could you utilise the / button?

0

This is tricky. I designed my own custom chat system and you normally would use the KeyDown event for this, but apparently - after you deleted chat - only KeyUp fires for /. There may be some kind of way to get it via UserInputService though (got just released).

1

So after you remove the chat option. The / KeyDown is 'removed'? - (my words)

1

No, with the Chat GUI you cannot get the / key, and without it SHOULD be possible to get it (via KeyDown) but something blocks this. You can get it via KeyUp though.

or just the playerlist only



local StarterGui = game:GetService("StarterGui")
StarterGui:SetCoreGuiEnabled(0,false)

This discussion is preserved as it was. New answers, comments, and votes are closed.