Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is it ok to save over 100 values onto DataStore?

Simple question. I've seen games save like 100 things and have no problem. In my case I've got (Chief) 117 values to save.

On the side of that, can you save Color3Values and StringValues? Some of the values I have are those (Mostly StringValues), I'm wondering if that effects storage :/

2 answers

✓ Accepted answer

#Limits

DataStores do have a limits of how much data you can store per minute. and what you can store, and How much you can store per key You can view said limits here

#How datastores work

Data is saved in JSON format, so a key for Roleplaying games where you can Build houses can look like this in JSON:

{
	"Points": 500,
	"Purchases": [
		"Car": 1
	],
	"House": [
		{
			"Type": "wall",
			"Properties": {
				"Start": {
					"X": 50, "Y": 0, "Z",0
				},
				"End": {
					"X": 50, "Y": 0, "Z", 0
				}
				"Color": {
					"Material": "Concrete",
					"Color": {"r":5, "g":10, "b":0}
				}
			}
		}
	]
}

When using GetAsync() Roblox changes the Raw JSON string into a Lua readable format When using SetAsync() Roblox encodes the Data into JSON to be saved on the servers

Using tables you can store Roblox specific datatypes such as Color3 or Vector3's as well but then you have to decode them back into the Roblox datatypes yourself

you can save as much data as you want in roblox datastores, I don't think roblox adds a limit(I could be wrong).. however, you can only save strings, and numbers in datastore.. you can also pass non-mixed tables to SetAsync but they will be formatted in JSON looking strings, then saved to datastore..

This discussion is preserved as it was. New answers, comments, and votes are closed.