I want to display the ‘_G.inventoryPool’ global table class that I specified in the Normal Server Script from a module script, but I can’t manage it even though there are servers on both sides.
Although there is a server on both sides, I cannot see the global table from the module script.
I tried to transfer the global table to the module but I got the same result.
-- ModuleScript
local Manager = {}
local inventoryPool = _G.inventoryPool
function Manager:test()
return inventoryPool
end
return Manager
--ServerScript
_G.inventoryPool = _G.inventoryPool or {}
local InventoryManager = require(game:GetService("ServerScriptService").Class.Manager)
local inventoryPool = _G.inventoryPool