of     1   

Wrathsong
#183651601Monday, February 15, 2016 5:58 AM GMT

If I'm correct, in this code: ODS:SetAsync("RecurringNightmare", 0) RecurringNightmare is the key and 0 is the value. If this is the case, then please correct me: else consider the following.. I return this key to a localscript with a remote function and it receives the key correctly. Why does it error when I try to reference key.value? Do I need to return the value too?
12103net
#183651700Monday, February 15, 2016 6:01 AM GMT

does it say it's nil? try making a table and returning that
Wrathsong
#183652266Monday, February 15, 2016 6:13 AM GMT

it does say it's nil but it is in a table. keys is the name of the table and key is the key returned (in this case, "RecurringNightmare") function ReturnUser.OnServerInvoke(player, key) print 'server invoked' for i,v in pairs(keys) do if v == key then -- return key return ODS:GetAsync(key) end end end
Wrathsong
#183664924Monday, February 15, 2016 1:54 PM GMT

b
PrincessViolaRiku
#183665072Monday, February 15, 2016 1:57 PM GMT

Where is the localscript?
Wrathsong
#183665474Monday, February 15, 2016 2:06 PM GMT

StarterGui...

    of     1