Client Lag/Bad Wifi causes problems

When the player is lagging or the player has bad wifi a problem occurs. A big problem. There are upgrades in my game and it has a buy all button. When you press the buy all button and you have bad wifi or client lag then your currency goes to minus.

What could be causing this and how can I fix it?

1 Like

Did you make sure that the code verifies if the player has the money needed to buy the upgrade?
If yes, try stopping the code if the player doesn’t have enough money.
Other way to solve it is adding a code to make sure if the player has money, like a double checking code.

I see what you mean. I will be trying that out in the morning.

1 Like