|
| 25 Jun 2015 08:01 PM |
| I currently have 20 textbuttons in a scrolling frame in a game with a max playercount of 20. I'm trying to make it so each textbutton displays a different character name. How would I go about doing this? |
|
|
| Report Abuse |
|
Ictis
|
  |
| Joined: 01 Sep 2011 |
| Total Posts: 1216 |
|
|
| 25 Jun 2015 08:05 PM |
players = game.Players:GetPlayers() textbuttons = {} --[[Just put all your textbuttons in here, separated by commas. I.E. Players.LocalPlayer.PlayerGui.Textbutton. Or where ever they're located.]]
for i=1,#players do textbuttons[i].Text = players[i].Name end
|
|
|
| Report Abuse |
|
| |