what type of values can datastore store and cannot?
1 Like
The only things data stores can store are:
- Numbers
- Strings
- Booleans
- Tables (either full array or full dictionary, cannot be mixed)
- Nil
Other types (like userdata, thread, function) cannot because they cannot be serialized via JSON.
For serializing those you will need to write a custom (de)serializer. I don’t think you’ll ever be able to serialize a function or a thread and there is no use case for doing that so please don’t do that.
9 Likes