I have noticed in some games, when you join, the player list is hidden (as if Tab were pressed) but not disabled. However, in my game, when a player joins the player list is open, and they must press Tab to close it.
How are games starting out with the player list closed?
local StarterGui = game:GetService("StarterGui")
local UserInputService = game:GetService("UserInputService")
local Connection = nil
function SetPlayerList(Enabled)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, Enabled)
end
SetPlayerList(false)
Connection = UserInputService.InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.KeyCode.Tab then
SetPlayerList(true)
Connection:Disconnect()
end
end)
this is a localscript inside StarterPlayerScripts
basically it disables it when you join and when you press tab it becomes normal again
this is in a localscript so it doesn’t break