"Attempt to call instance Value"

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)

You need to require the module to use its return value.

- local datastore2 = game.ServerStorage:WaitForChild("DataStore2")
+ local datastore2 = require(game.ServerStorage:WaitForChild("DataStore2"))