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

Removing chat and playerlist.

Asked by 10 years ago

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

Log in to vote
1
Answered by
jobro13 980 Moderation Voter
10 years ago

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.

1
Yeah ok. So if you wanted to make your own chat service could you utilise the / button? ConnorVIII 448 — 10y
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). jobro13 980 — 10y
1
So after you remove the chat option. The / KeyDown is 'removed'? - (my words) ConnorVIII 448 — 10y
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. jobro13 980 — 10y
Ad
Log in to vote
2
Answered by 10 years ago

or just the playerlist only



local StarterGui = game:GetService("StarterGui") StarterGui:SetCoreGuiEnabled(0,false)
Log in to vote
0
Answered by
woodengop 1134 Moderation Voter
10 years ago

This Might Help you: http://wiki.roblox.com/index.php?title=Disabling_parts_of_the_game_interface

Answer this question