local players = {}game.Players.PlayerAdded:Connect(function(player)
table.insert(players, player)
end)print(players[1])for i = 1, #players do
print(players[i].Name)
endgame.Players.PlayerRemoving:Connect(function(player)
for i = 1, #players do
if players[i] == player then
table.remove(players, i)
break
end
end
end)local players = game.Players:GetPlayers()