Best way to check when both players are ready in a trade?

Im making a trading system and I was wondering whats the best way to know when both players are ready to trade and then run a function?

1 Like

Both players would obviously have a trade gui, so you need to add a button that they can click when they are done, once they’ve clicked the button, the server will track if the player is ready or not, if both are ready, the buttons will disable and the trade will proceed.

1 Like

You need to use the server as a proxy since you can’t do client to client communication.

3 Likes