How would you make a tetris-based inventory sytem?

Hey, I was wondering how I would make a tetris inventory system, a bit like apocalypse rising, something like that. It’s a pretty hard task to do and with ROBLOX’s scaling system, it makes it harder.
Any help would be appreciated.

Maybe make a table store the sizing and the exact size, like:

size1 = --size
size2 = --size

and then a table containing the strings and which size the items have:

"gun" = size3
"mag" = size1

Once an item enters the inventory, check what size is registered for them and scale them properly.