Can't get saved values from table

So i’m trying to figure out why i can get values from the first table and not from the second one.
local DSS = game:GetService(“DataStoreService”)
local t = {
DSS:GetDataStore(“LData”),
DSS:GetDataStore(“StData”),
DSS:GetDataStore(“MData”),
DSS:GetDataStore(“DData”),
DSS:GetDataStore(“EData”),
DSS:GetDataStore(“SpData”)
}
local T = {DSS:GetDataStore(“Data”),
DSS:GetDataStore(“Data2”)
}

game.Players.PlayerAdded:Connect(function( p )

    for _,v in pairs(t) do
	print(v:GetAsync("Name"))
end

for _,v in pairs(T) do
	print(v:GetAsync("Name"))
end

end)

I have saved string values for all of these Data stores, but for some reason i can’t get them from the second table when using for loops.

local t = {
[“LData”] = DSS:GetDataStore(“LData”)
}

for _, v in pairs(t) do
print(v)
end

1 Like