Looking to improve my datastore (UpdateAsync)

Hey,

My current datastore script is still working but i’m looking to improve it.
I saw somewhere, that using “UpdateAsync” is better than “SetAsync” because it have a lot less dataloss.
So i want to change the “SetAsync” by a “UpdateAsync”, but it seem not working on my script.

Can you tell me what is wrong in my script, and how i can improve it ?
I also want to keep the script simple, without using module and things like this.

1 Like

Looking at your DataStore is seems that SetAsync would be better than UpdateAsync.

UpdateAsync is typically use for DataStores like Global leaderboards.

In other words,

SetAsync is better then UpdateAsync in this scenario.

1 Like