Data Rollback Problem

Problem:
User 1 buys dev product for 500 gems
User 1 teleports to a reserved server
User 1 data loads, but it loads the previous version without the new 500 gems they bought
User 1 now lost that 500 gems

How do I fix this data roll back problem?

When a player teleports, the PlayerRemoved event will fire so considering that you save the player’s data inside it, the only other issue will be race conditions. They are fairly easy to combat if you have a session lock system in place. You can either create one yourself or use existing modules like ProfileService

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.