Hey, I’ve been looking for ways to save a Dictionary with DataStore2.
This is my Dictionary I’m trying to save:
local CurrentIce = {
[1] = {["IceName"] = "Frosted", ["Count"] = 0};
[2] = {["IceName"] = "Cream", ["Count"] = 0};
}
To save it I’m doing:
local IceStore = DS("Ice", Player)
IceStore :Set(CurrentIce)
To load it I’m doing:
if IceStore:Get() ~= nil then
local CurrentIce = IceStore:Get()
end
I’m receiving this error:
![]()
Any ideas on fixing this?
Thanks in advanced!