How do I use a dictionary with a table key? I am lost on how to make this work.
For example;
Local Cells = {}
Cells[{x,y}] = part
print(Cells[{1,2}].Name)
How do I use a dictionary with a table key? I am lost on how to make this work.
For example;
Local Cells = {}
Cells[{x,y}] = part
print(Cells[{1,2}].Name)
Well, I solved this on my own by finding out that tables are assigned different valves despite the same hash. So I replaced the table with table.unpack(table) to store the part under the raw table values. I wrote this for anyone who might also have this problem.
This discussion is preserved as it was. New answers, comments, and votes are closed.