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 do multidimensional tables?

I know in python you do a multidimensional table and its like this:

MyTable = {{"jap","Harry"},{"Jerry","Cherry"},{"Jam","Pam"}}

print(MyTable[1,2])
print(MyTable[2,1])
print(MyTable[3,1])

Output:

Harry
Jerry
Jam

But how would I do this in a script?

1 answer

✓ Accepted answer
MyTable = {{"jap","Harry"},{"Jerry","Cherry"},{"Jam","Pam"}}

print(MyTable[1][2])
print(MyTable[2][1])
print(MyTable[3][1])

1 comment

0

Thank you!

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