Datastore return me a string instead of a table

i writed something that make a datastore called files and then save it as a table then i use a remote event to call the script(from localScript) to set a variable somewhere as the table returned from datastore then when i play it return [table: 0xf3944fdf4f1f4a24] to me can anyone help??

LocalScript:

local Tables = require(game.ReplicatedStorage:WaitForChild("Tables"))

wait(1)

game.ReplicatedStorage.GetAsync:FireServer()
local T = Tables:GetGA()
print(T)

ModuleScript

local Tables = {}

local GetAsync = {}

function Tables:SetSG(T)
	GetAsync = T
end

function Tables:GetGA()
	return GetAsync
end

return Tables

thanks

If it prints table: 0xf3944fdf4f1f4a24 then it’s normal. That’s the array’s “id”.

You can do

for i,v in pairs (tbl) do
   print(v) -- v is the value, i is index
end
3 Likes