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

How would I add a UDim value to a TextLabel based on the amount of values in a table?

For example, if I have a table;

a={"a","b","c"}

How would I make the TextLabel move down based off of #a?

1 answer

✓ Accepted answer

By using a for loop.

for i=1,#a do
	local label = Instance.new("TextLabel") 
	label.Position = UDim2.new(0, 0, (i * 10)/100, 0)  -- Replace 10 with whatever number you want to scale by.

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