Looking for a way to drop all items when bag is dropped?

Just use a for each loop and spawn each inventory item then clear the array.