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

How to remove the playerlist?

Asked by 10 years ago

I have the script

game.StarterGui:SetCoreGuiEnabled("All", false)

or workt not..

0
That would work, except that it would hide all of the CoreGuis. Thewsomeguy 448 — 10y

2 answers

Log in to vote
4
Answered by
jobro13 980 Moderation Voter
10 years ago

That should work! Make sure this code is one of the first things to run, and that it is in a LocalScript!

0
okay tnx timovaneck 0 — 10y
Ad
Log in to vote
-1
Answered by 10 years ago

This should work.

function Entered(player) wait()

if player:findFirstChild("leaderstats") ~= nil then
    player.leaderstats:remove()
end

stats = Instance.new("IntValue")
stats.Parent = player
stats.Name = "leaderstats"

-----> World Data <-----
bool = Instance.new("BoolValue")
bool.Parent = stats
bool.Name = "Hidden"
bool.Value = true

end

game.Players.PlayerAdded:connect(Entered) c = game.Players:GetChildren() for i=1, #c do Entered(c[i]) end

Answer this question