Action RPG Inventory System

i fixed his logic and made it work fine and posted a screenshot above.

since you suggest to not use loop, could you suggest an alternative that works since i am using loop too?

thanks.