How would I make an inventory system?

Hello DevForums again! I wanted to go and make an inventory system for my game, so I created a gui that had slots for items. I was then however confused on how to make items pickup and add into the inventory, alongside save the items when players leave. I thought about detecting if an item was there or not in a player’s inventory to determine whether to add on to an existing stack or to add a new slot and using int values to save what item was in a player’s inventory, but I got stuck and couldn’t find another way.

2 Likes

incapaz made a great tutorial on inventories.

2 Likes