How can I store dictionaries in Ordered Datastores?

If you don’t know, dictionaries = tables.

Hey! Im trying to make a global leaderboard, but to do that I need to change my normal datastores to ordered datastores. The thing is, I have dictionaries as the value in my current datastores. You can’t store dictionaries into ordered datastores.

What I though I could do is make a script that copies all the normal datastores info for every player, and then encrypt the data into a string for an ordered datastore, and when needed, decrypt the data to turn it back into a table.

The thing is, I don’t know how to make this or where to start. If you could give me ideas of code or concept, it would help. Thanks for reading!

1 Like

You can’t store strings in an Ordered Datastore, you can only store positive integers.

This post may give you more insight too:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.