hmm im not sure i understand that script correctly if ihave 3 chests it would look somthing like this then? item id are not the ones i want in the script but only as an example ofc.
local chests = {
[1000] = { items = {{2160, 100}, {1111, 2},
[1001] = { items = {{2161, 100}, {1112, 2}...