So I have a folder that contains IntValues numbered from one to a certain amount and the value of those IntValues is the amount of that [number] item a player owns. By the name of the folder, you can probably guess what I’m trying to do.
My question is, should I store values in a module this way
local Module = {}
Module.Values = {
[1] = { -- Represents the number in the pet folder
Value1 = 1; -- Name
Value2 = 2; -- Definition
Value3 = 3; -- Etc
};
[2] = {
Value1 = 1;
Value2 = 2;
Value3 = 3;
};
[3] = {
Value1 = 1;
Value2 = 2;
Value3 = 3;
};
[4] = {
Value1 = 1;
Value2 = 2;
Value3 = 3;
};
[5] = {
Value1 = 1;
Value2 = 2;
Value3 = 3;
};
}
return Module
Or is there a simpler way of doing it?
Or is my way a bad idea/won’t work?