game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(playerJ)
    for i,v in pairs(game.Players:GetChildren()) do
        local ptclone = game.ServerStorage.PlayerTemplate:Clone()
        ptclone.Name = playerJ.Name
        ptclone.PlayerName.Text = playerJ.Name
		ptclone.Parent = v.PlayerGui.ScreenGui.MainMenu.Multiplayer.Players
    end
end)

PlayerTemplate is the TextLabel template for each player that joins.

When I started a Test Server with 4 players this is what each player saw:

Player 1: -- everybody

Player 2: -- Player 2, Player 3, Player4

Player 3: -- Player 3, Player 4

Player 4: -- Player 3, Player 4

I am certain that the error is in this bit of code but I can't figure out what's going on, help is much appreciated!

1 comment

0

The server-side is adding the players to the custom leaderboard?