I’m having problems with datastore2. The :Get(STANDARD_VALUE) function isn’t working as it should.
I have the following code on the server-side and I’m using it to update the inventory of a player. The problem is that the :Get() function returns nil even though I’ve put a standard value. How can i solve this?
local standardInventoryValue = {
[1] = {},
[2] = {},
[3] = {}
}
DataStore2.Combine("DATA", "inventory")
local savedInventoryData = DataStore2("inventory", player)
local inventory = savedInventoryData:Get(standardInventoryValue)