I haven't gotten an answer the first time, even putting it on the ROBLOX forums...
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:
for i, v in pairs(game:GetService("Teams").Spectators:GetPlayers()) do local votegui = v:FindFirstChild("PlayerGui").Vote.Frame for i, v in pairs (_G.playersingame) do local voteButtons = game:GetService("ServerStorage").VoteButtons:GetChildren() if i == voteButtons.Name then end end end
The vote buttons are in a folder called 'VoteButtons' in ServerStorage.
Please tell me if I am doing anything wrong.
Try watching AlvinBLOX on YT, search Spectate Gui on his channel.