Do tables count as 1 character or multiple in datastores?

I’m working on quite a big system where you can make your own game, kinda like blockate and retrostudio. I have one question however. Since i use tables for saving position (since datastores cant save vector 3 values meaning i use a table then when loading i unpack it), would the table count as 1 character in a datastore or how much characters in the table itself, as i learnt the limit is 260k characters, since im researching alot on datastores to make sure everything is alright, and nothing goes awful.

When you store values different to a string on a data store, it automatically gets encoded with JSON, which returns a string. You can convert a value to JSON with HttpService, and then get the string’s lenght to know how much characters it does take (Take in mind you need to have HTTP requests enabled to perform this action).

local HTTPService = game:GetService("HttpService")

local SerializedPosition = {X = 0, Y = 0, Z = 0}

print(#HTTPService:JSONEncode(SerializedPosition)) -- how many characters the encoded table has
1 Like

Ah, so thats how you can find out.