Inventory System - Followed Tutorial, Slot Transfer Not Working

Hi! So I’m working on this inventory system and I’m having an issue where the stacking works, but the original stack doesn’t lose any, resulting in an almost doubling of the item, which is definitely not supposed to happen!

Gameplay:

Tutorial:

Code: