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
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.
or just the playerlist only
local StarterGui = game:GetService("StarterGui") StarterGui:SetCoreGuiEnabled(0,false)
This Might Help you: http://wiki.roblox.com/index.php?title=Disabling_parts_of_the_game_interface