I need help on how to make a pet trading system!

I’m working on a fun game where you can trade pets and yet I have no idea how to make a trading system. I have tried to do some research and still haven’t found anything. May someone help me please, thank you.

3 Likes

Have you attempted scripting anything to actually make the trading system?

How should I write my topic?
You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
  2. What is the issue? Include screenshots / videos if possible!
  3. What solutions have you tried so far?
1 Like

I’m learning scripting but still have a lot to learn as well. I’m not to the point where I can script a trading gui. That is why I am asking here.

3 Likes

Here is an older post where someone asked the same question: Making a trading system?

1 Like

In that case, making a trading system uses a Client-Server-Client communication model.

• Player A wants to trade with Player B, so Player A tells the server.
• The server asks Player B if he/she wants to trade with Player A.
• If yes, yhen Player A selects which pets he/she wants to trade with Player B (Make sure Player B can see what Player A wants to trade with them!)
• Player B selects what to trade with Player A (Player A can see this as well)
• Both players have a button to press if they’re ready to trade, if both buttons are clicked, the trade will proceed.

This can be accomplished with Remote Events, however this would be better with Remote Functions. Why? because this system is all about results and status. Both players need to be constantly updated about what’s going on. It’s all about transparency (which is good UX wise).

With remote functions, you can give back results depending on what you invoked/requested.

I suggest that you check out the API page and the code samples and give it a try. Along the way, you can ask questions and eventually come up with a trading system.

7 Likes

note down all the things that @wevetments said in a piece of paper

Break that into sections.

Now observe what you dont know. Try to learn it (here events)
And write what ever comes to your mind.
Dont worry there will be times when you dont know what to do and when that happens
ask question here providing the code you have written and all the other information required to help you.

Thanks for reading :slight_smile:

6 Likes

Ok, thank you so much. I will try and see what will happen.