How to get all Datastores of Experience

grafik

Try checking if it prints “Table”

Try this:

print({1,2,3})

Yes it prints a table.
~maini~~~~~

it now prints this for you:

{
   [1] = 1,
   [2] = 2,
   [3] = 3,
}

Also if that random thing is happening even if log mode is off, then I advise you to contact @Bug-Support

I just dont understand the documentation.

I can agree the documentation gets really confusing. Just figured out how to do it for myself, This should be what you’re looking for:

local DSServ = game:GetService("DataStoreService")

local pages = DSServ:ListDataStoresAsync() -- Get datastore pages
				
while wait() do
	for _, item in ipairs(pages:GetCurrentPage()) do -- List Datastores on current page
		print(item.DataStoreName) -- Print Datastore name
	end
	if pages.IsFinished then break end -- Stop listing if this is the last page
	pages:AdvanceToNextPageAsync() -- Go to next page
end

How can I get only the datastores, that the player used?

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