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

How can I hide the health bar ,the chat and the player list?

Asked by
Poine 30
8 years ago
local gui = Enum.CoreGuiType --abbreviation
game.StarterGui:SetCoreGuiEnabled(gui.Health,false) --disabling health gui
game.StarterGui:SetCoreGuiEnabled(gui.PlayerList,false) --disabling player list gui
game.StarterGui:SetCoreGuiEnabled(gui.Chat,false) --disabling chat gui

I did it in a LocalScript inside StarterGui , and it worked, except for the chat.

Chat is still there , but the others are gone.

So I tried


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

It also removed everything but the chat. How do I remove the dang chat?! :/

Also I don't want to make it bubble chat. I want it with my custom chat GUI , classic only. No bubbles, thats the issue :/

0
Try the game settings Scriptecx 124 — 8y
0
As I've stated in my question , I don't want to make it bubble chat or classic chat. I want to remove them BOTH in order to make my own chat gui. Poine 30 — 8y

2 answers

Log in to vote
0
Answered by
Pyrondon 2089 Game Jam Winner Moderation Voter Community Moderator
8 years ago

I use it in one of my projects and it works fine:

game:GetService('StarterGui'):SetCoreGuiEnabled(Enum.CoreGuiType.All, false)

Do you use this anywhere else? Maybe you're accidentally re-enabling it.

0
I put it on a while wait() do loop , and it worked. Thank you. Poine 30 — 8y
0
No problem, but you may want to break that eventually. Pyrondon 2089 — 8y
Ad
Log in to vote
0
Answered by 8 years ago

I've removed the "gui" variable and put only 1 line of code.

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)

This worked for me removing all the possible core interfaces roblox had, including chat.

It seems "Enum.CoreGuiType" works better without a variable.

Remember that I've added a normal script in "StarterGui"

0
Hello , this works in studio , but not in a live server. Poine 30 — 8y

Answer this question