Im not sure how to fix this, can someone help me?
local event = game.ReplicatedStorage.Events:WaitForChild("UpdateInventory")
local datastore2 = game.ServerStorage:WaitForChild("DataStore2")
event.OnServerEvent:Connect(function(player)
local inventorystore = datastore2("Inventory", player)
inventorystore:Update(function(currentTable)
end)
end)