How would I print all the data from a datastore? (Datastore2)

So I basically want to access the data from a datastore but I can’t seem to find any solutions or ways I could possibly do it, any help?

1 Like

You can use :ListKeysAsync() to go through all keys in a datastore. But I’m not sure how that would work with Datastore2.

And that’s why my question is not easy. I mean I can try looking through the Datastore2 API.

Datastore2 gives each player their own datastore, so you could use :ListDataStoresAsync() to go through all datastores and filter out player datastores. Then use those to do what you’re used to with Datastore2.

Okay, thanks. I’m not gonna use it right now but I’ll keep this in mind for now!

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