This may sound confusing so bear with me...
I'm trying to make a GUI with text buttons but each button's text is a player in a table's name.
So if there was 3 players in the table, 3 different text buttons would be made, the text being a player's name.
Hopefully I explained it well and if not please tell me.
I don't know if I'm on the right track:
1 | for i, v in pairs (game:GetService( "Teams" ).Spectators:GetPlayers()) do |
2 | local votegui = v:FindFirstChild( "PlayerGui" ).Vote.Frame |
3 | for i, v in pairs (_G.playersingame) do |
4 | local voteButtons = game:GetService( "ServerStorage" ).VoteButtons:GetChildren() |
5 | if i = = voteButtons.Name then |
6 |
7 | end |
The vote buttons are in a folder called 'VoteButtons' in ServerStorage.
Please tell me if I am doing anything wrong.