So I have a basic datastore:
local dataStore = game:GetService("DataStoreService"):GetDataStore("Example")
How can I get all the keys to do this:
for i, v in pairs(dataStore) do print("Key: " ..v) end
I don't have any of the key names, so I can't do GetAsync().
Unless you make the datastore as one key with one value which is a table, you can't loop through a datastore. It is meant to get data for specific players. If you are only concerned with data for players in the current server, you should make a simple table called "localDataStore" or something. When the player joins, store their data in that table. Then you can loop through data.