(SOLVED) UpdateAsync old data is the same as actual data?

Let’s say I have this:

local actualData = {Level = 5}

Data:UpdateAsync(636684006, function(oldData)
    warn(oldData, actualData)
    return actualData
end)

Somehow this prints in my console the actualData twice??? (Even if the Level changed)

Ask me anything, I’m not sure what’s the problem.

Solved, I though using a table inside a global value wouldn’t edit it

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.