Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Should i use updateAsync or setAsync to save player stats?

Asked by 6 years ago
Edited 6 years ago

So i have been using setAsync to save player stats like gold, exp, level, weapons.

should i be using updateAsync?

my current datastore seems very unreliable and often throttles. It even a couple times saved my data as someone elses?

thank you for any feedback.

EDIT: If i should change to UpdateAsync would it be as simple as just changing "setAsync" to "UpdateAsync"?

1 answer

Log in to vote
0
Answered by
Eqicness 255 Moderation Voter
6 years ago

From my knowledge of datastores, SetAsync is fine and saves budget. I don't fully understand UpdateAsync, but from what I can gather it returns your data and sets it, which is pretty pointless.

I find SetAsync to be the exact same thing as UpdateAsync but it doesn't return anything.

Ad

Answer this question