Hello! I tryed to make a table data store with print().
but the Output show me a error…
here script:
local datastore = game:GetService("DataStoreService")
local mydata = datastore:GetDataStore("mydata")
local success, err = pcall(function()
mydata:SetAsync("list", "text1")
mydata:SetAsync("list", "text2")
end)
if success then
print("success!")
else
error("error: "..err)
end
local dataTable = mydata:GetAsync("list")
for i, v in pairs(dataTable) do
print(i,v)
end
I enabled the API Service.
thank you in advance!