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

Is it better to have multiple datastores or just one?

Asked by 8 years ago
Edited 8 years ago

Would be it better to have multiple datastores for your game or just one?

Like one datastore for clothing values, and another for stat

1 answer

Log in to vote
0
Answered by 8 years ago
Edited 8 years ago

In my opinion, it is better to have multiple datastores so you can save data to a playerid for the key and the value for whatever the item is i.e., clothing, stats, etc. instead of trying to save all of the data in one datastore and trying to remember which part is for what. The disadvantage to having multiple datastores is that there will be for Async requests, and roblox has a limit of those.

Gets 60 + numPlayers * 10 Sets 60 + numPlayers * 10 GetSorted 5 + numPlayers * 2 OnUpdate 30 + numPlayers * 5 All of these are per minute.

0
If you wanted to reset a certain value in your DataStore, you could just change the name of it. Let's say we had a value named Exp. if you wanted to reset it, you could name it EXp or EXP or EXP1 or 2 etc... StoIid 364 — 8y
0
Another way of resetting it is by setting it to nil if I'm not mistaken. MrLonely1221 701 — 8y
0
Even tough documentation says SetAsync() accepts nil, it does error whaen attempting to set to nil davness 376 — 8y
Ad

Answer this question