Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Table displayed in seperate text buttons in a GUI?

Asked by 7 years ago

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:

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

The vote buttons are in a folder called 'VoteButtons' in ServerStorage.

Please tell me if I am doing anything wrong.

Answer this question