So its not saving this stuff and I need some help fixing it. If someone could please fix this I would jump in joy :)
01 | local DSS = game:GetService( 'DataStoreService' ):GetDataStore( 'Credits' ) |
02 | local Sp = game:GetService( 'DataStoreService' ):GetDataStore( 'Speed' ) |
03 | function save(plr, value) |
04 | DSS:UpdateAsync(plr.userId, function (Data) |
05 | Sp:UpdateAsync(plr.userId, function (Datas) |
06 | return value |
07 | end ) |
08 | end ) |
09 | end |
10 | function loads(plr) |
11 | return Sp:GetAsync(plr.userId) or Sp:SetAsync(plr.userId, 0 ) and 0 |
12 | end |
13 |
14 | function load (plr) |
15 | return DSS:GetAsync(plr.userId) or DSS:SetAsync(plr.userId, 0 ) and 0 |
Please take a look at this page on how to post good questions. It helps a lot if you would edit your question accordingly.
I am really missing an explanation. Your code seems to have a few logic problems, which can only be solved if we can fully understand what your are trying to achieve.