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

Table of players displayed in seperate text buttons in a GUI?

Asked by 7 years ago

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.

0
You are on the right track. Overscores 381 — 7y
0
But how would I position the buttons in the frame with a player's name in the text? Moshipikachu123456 15 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

Try watching AlvinBLOX on YT, search Spectate Gui on his channel.

0
I know of AlvinBLOX and have watched his spectate GUI tutorial but that's not what I need... each player in a table has a seperate button Moshipikachu123456 15 — 7y
Ad

Answer this question