Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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.

2 comments

0

You are on the right track.

0

But how would I position the buttons in the frame with a player's name in the text?

1 answer

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

1 comment

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

This discussion is preserved as it was. New answers, comments, and votes are closed.