Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Table aligns Data not what i'm intending?

Asked by 5 years ago
Edited 5 years ago

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?

0
Try using table.Concat Zologo 37 — 5y

Answer this question