I was trying to achieve a no playerlist script for a roleplay game my friend made and I am a dev for. I found a resource on the devhub and tried it. I used it on my private test game and it worked, so I put it in the actual roleplay game. When I put it there, it wasn’t working, my thought is a script in the game was overlapping with the playerlist script. Here is what it is:
local StarterGui = game:GetService("StarterGui")
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
@HonestJar I checked out the output, nothing related to it in the roleplay game. @ViserLizz I will try that tomorrow as I have to go to sleep right now. Thanks everyone.
put it in StarterGui or in StarterCharacterScripts, I suggest StarterGui as StarterCharacterScripts will only run once the character of the player is loaded.
Perhaps the script is disabled unknowingly or there is something else affecting the playerlist being enabled in the game? No idea why this would happen unless something else is acting upon the script or the playerlist.