I am trying to use table.find to find a GUID value in an array of tables. Below I paste the code and a screenshot of the print results.
function InventoryService:FindItemByGUID(myTable, GUID) local resuts = table.find(myTable, GUID) print("GUID to find: ", GUID) print("table to find in: ", myTable) print("results of table.find", results) end
here is a screenshot of the resulting prints, you can see the GUID is in fact stored in one of the tables.
What i need is to get the array index of the table that has this GUID in. I can of course use a more iterative approach but I thought i would give table.find for the first time.