Trade system issues

Hello, I would like to know ideas and ways to create a trading system, the truth is not very well how to do it or where to start…

I would appreciate it if someone could share commented code with me, that would be very helpful. :frowning:

1 Like

A few things you’ll need to consider:

  • Player’s Inventory
  • Other Player’s Inventory
  • Changing values in each person’s inventory
1 Like

I presume you don’t have adequate experience in composing scripts, hence I’d advise you to not push the boundaries out of the limit into creating a trade system.

A system requires a set of parts cooperating together, and it involves a lot of complication within the knowledge of creating this, so I can assume that it’ll be a large, stressful obstacle for you.

To write this system, you’d need to utilise services, resources, and mutuals, to make it function as intended - these are: DataStoreService (for storing data, saving inventory), RemoteEvents (for a connection between the LocalScript that manages the trades, and a Script for validations and actions), your customised inventory system, and such.

I’ve found a video resource that may assist you with this, but keep in mind that it’s limited, and may function differently. It utilises RemoteEvents, but please don’t focus on it as it doesn’t consist of important operations (such as saving data), and is basic.