How do I hide the whole list of players
You can Enable or Disable any CoreGuiType using the setCoreGuiEnabled() method on the StarterGui
from a LocalScript
, to answer your specific question it'd be:
game.StarterGui:SetCoreGuiEnabled("PlayerList", false)
Or, as chararray256 indicates, you can use the code "0"
for "PlayerList":
game.StarterGui:SetCoreGuiEnabled(0, false)
Put the following in a LocalScript:
game.StarterGui:SetCoreGuiEnabled(0, false)