Im trying take the first index number of an array and use it to change the text of a texbutton like so
local array = {}
local players = game.Players:GetPlayers()
for i=1,#players do
table.insert(array,players[i])
end
and
game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.player1.Text = array[1]

1 comment
array[1].Name; look at tostring and table.concat() for actual conversions.