Keeping this short and simple.
I was wondering how I could make a GUI case opening system, where you open a case, you get an item, and that item goes into your inventory. I already have intermediate scripting experience, but I was wondering how I could do this with remotevents and how I could script the inventory system, as well as a selling item system.
Thanks!
2 Likes
Here’s some logic that you could use when designing this type of system:
RemoteEvent
Player opens crate → Server generates a random item. Server adds this item to their inventory.
- Pretty simple. You’d want to have a weighted generator however, so players don’t have the same chances of getting the rarest item versus getting the worst item.
- Will probably need DataStoreService, if you want their data to be saved when they leave. If you don’t want to work with that, I get it, it’s a lot, you should use ProfileService.
Player sells item → Server puts this item on sale.
- If you want a global marketplace, ie a marketplace that spans across multiple servers, you’ll have to use MessagingService.
RemoteFunction
Player opens their inventory → Server returns a list of all their owned items.
Player opens the marketplace → Server returns a list of all on sale items.
1 Like