So, in this normal script in workspace, im trying to get the scripted table to align the values by like [1] = Shirt, [2] = Pants and so on.

But, it's aligning the values like [1] = Shirt, [2] = Shirts Pants, [3] = Shirts Pants Hair and so on.

as my example:

Script (that sets the table)

local Data = {}
for l, v in pairs(Folder:GetChildren()) do
	table.insert(Data, v)
		print(unpack(Data))
	end

Output:

 Shirt
 Shirt Pants
 Shirt Pants Hair
 Shirt Pants Hair Face

Any ideas?

1 comment

0

Try using table.Concat