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

How do I take the first item on a table, and place it onto a textlabel's text?

And so forth with however many more items are on the table?

3 comments

1

label.Text = t[1]

0

*** I have multiple text labels named a - f. First item on the table should go in textlabel a's text, #2 into text label b's text, etc.

0

You're able to edit your question to include additional information, so you know.

1 answer

✓ Accepted answer

Rename your TextLabels something like 't1', 't2', up to however many you need, so it's easier to get the number.

local gui = script.Parent
local a = {} -- insert your stuff here

for i = 1,#a do
	local find = gui:FindFirstChild("t" ..i)
	if find then
		find.Text = a[i]
	end
end

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