You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? I want DataStore2 to save.
What is the issue? It won’t save. Before leaving where cash is incremented vs After rejoining where cash is reset to default .
What solutions have you tried so far? I have tried adding print statements to the :Set() function of the DataStore2 module. It says that everything’s working perfectly fine, except when I rejoin, it all goes back to default.
You should probably ask any questions on the related thread here:
DataStore2
Documentation | News | Source
DataStore2 is an open source module that uses berezaa’s method of saving data that prevents data loss, caches, and verifies data before saving. DataStore2 has been used in my game visited by 120 million players with a constant concurrent player count of around 3,000 - 8,000 players, one time reaching 12,000 concurrent players. @AlreadyPro ’s latest game Fairy World has 3 million visits and a consistent concurrent player count above 1,000, and a peak of 5…
Otherwise, I would recommend just using DataStores without a module as there’s no need to use one.
Can we see the code? So I can tell you what’s wrong
Did you use Increment() for the Currency?
I apologise for any time wasted, problem was fixed by updating the scripts to version 1.4.0
.
1 Like
I recommend doing this to be updated to the lastest version.
local DataStore2 = require( ) -- the id of the DataStore2 model
1 Like