Hello! I’m making trade system, and have problems with making ready buttons. How to make some action when two players will press button?
you can make a boolvalue for both players, and when the player presses Ready the boolvalue sets to true, and then check when both players are ready.
You might need to do the following:
-Player1 presses “Ready”.
-Player2 presses “Ready”.
-Fire/Invoke a remote to the server, make sure both players agreed to the trade.
-If success, then give each of them the items/stats the other put.
That’s very easy to do, Have a value inside of the Player called “Ready”
When the Player presses the Ready button make the Ready Value inside of the Player to true and Check if both of them are ready if they do Complete the trade.