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

How do I hide the player list?

Asked by 10 years ago

How do I remove the player list?

0
Please remember to use the Search option before posting a question. ;) OniiCh_n 410 — 10y

1 answer

Log in to vote
5
Answered by 10 years ago

Please look around the forums before asking a question next time!

Original Poster: AwsomeSpongebob

Whenever you want to disable one of Roblox's Core GUIs, you can use some simple bits of code in a local script.

Here's how it works:

In the code, SetCoreGuiEnabledis a method we use in local scripts to enable/disable the visibility of certain CoreGUI elements. The Core GUI itself is actually part of the Starter GUI. Once we have SetCoreGuiEnabled, then we have to define what we are enabling/disabling. To do this, we must set a specific Enum so it knows what we want. This Enum is represented by the name CoreGuiType. Here are all the names of the available Enums for this.

Enum.CoreGuiType.PlayerList Enum.CoreGuiType.Health Enum.CoreGuiType.Backpack Enum.CoreGuiType.Chat Enum.CoreGuiType.All

To get the leaderboard, we will use Enum.CoreGuiType.PlayerList.

Now we must decide whether it will be visible or not. To disable it's visibility, we will set it to false.

So, Here is what it should look like:

local StarterGui = Game:GetService('StarterGui')

StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)

On an iOS device, there are two other Core GUI's involved. To get rid of these, use this:

local UIS = Game:GetService('UserInputService')
UIS.ModalEnabled = true --If you don't want them shown on mobile, make this false.

Hope this helped, and if you need an explanation on something comment below! :)

Ad

Answer this question