I want a Textabel to be created and be sorted like a list(by going up one everytime),but it won't do that.All the TextLabels just have the same position
names = {"Bob","Tod","Jake","Dude","Wut" }--The names for i,v in pairs (names) do print(v) h = Instance.new("TextLabel",script.Parent) h. Text = v h.Name = v h.Size = UDim2.new(0,100,0,100) wait(1) h.Position = h.Position+UDim2.new(0,0,1,0)--For each name move up one end
You have to manually add or subtract each component individually. Unlike Vector3, UDim2 does not support component math like that.
Change line 9 in that block to this:
h.Position = UDim2.new(h.Position.X.Scale, h.Position.X.Offset + 1, h.Position.Y.Scale, h.Position.Y.Offset)