menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
Player join
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Player join
carlito1236
Join Date: 2013-07-20
Post Count: 142
#186269019
Monday, March 28, 2016 9:27 PM GMT
How can I list players in order of how early they join? Like first player joins is "Player1" Second player joins is "Player2" ect...
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
carlito1236
Join Date: 2013-07-20
Post Count: 142
#186270174
Monday, March 28, 2016 9:42 PM GMT
Anyone??
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
spinywind
Join Date: 2012-01-26
Post Count: 3580
#186270244
Monday, March 28, 2016 9:43 PM GMT
strings
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
carlito1236
Join Date: 2013-07-20
Post Count: 142
#186270355
Monday, March 28, 2016 9:45 PM GMT
What's next? If I use strings...
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
TimeTicks
Join Date: 2011-04-27
Post Count: 27115
#186270370
Monday, March 28, 2016 9:45 PM GMT
tables. Insert the players into a table then for how many table values there are just do player.Name == "Player"..i + 1
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
TimeTicks
Join Date: 2011-04-27
Post Count: 27115
#186270413
Monday, March 28, 2016 9:45 PM GMT
or actually just ..i if you insert the player into the table before the loop
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
carlito1236
Join Date: 2013-07-20
Post Count: 142
#186270615
Monday, March 28, 2016 9:48 PM GMT
I don't want to name them, I want to make a string as their name, but I want them in order(Player1,Player2...)
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
TimeTicks
Join Date: 2011-04-27
Post Count: 27115
#186270862
Monday, March 28, 2016 9:51 PM GMT
Like I said. local tab = {} local i = 0 game.Players.PlayerAdded:connect(function(player) i = i + 1 local string = "Player"..i table.insert(tab,string) end)
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
carlito1236
Join Date: 2013-07-20
Post Count: 142
#186272082
Monday, March 28, 2016 10:08 PM GMT
Thank you so much!
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right