I’ve figured it out, because I tried to plan ahead for trading with other characters or items with inventories (shops, chests, etc…) I wanted to take a reference of the inventory variable, but for whatever reason it wasn’t using it as a reference, even though it worked in an older version, but I had to rework all the functions to take a reference of a newly created component, that contains only the inventory variable and can be added to anything to give it an inventory rather than give it everything, and now the functions take a reference of the component and use its Inventory variable directly, rather than passing it through functions, and it finally works! Thanks for your help everyone who did!