Inventory System Chests/Storages

I’ve been making an inventory system and chests and I’m trying to make it so you can deposit items from the players inventory to a chest. So far only the 1st slot of the inventory can deposit items but not any of the other slots. With some testing I’m pretty sure that the item slot index is stay to 0/1st slot for some reason, any idea on how to index each slot so the first slot is 0, the second is 1, the third is 2, and so on? thx for your time.

Solved it