How would I store a table in a module script? I’ve tried this but it doesn’t seem to work.
local module = {}
module.inventory = nil
module.GotInventory = function(newinv)
print("got inv")
module.inventory = newinv
print(module.inventory)
end
module.GetInventory = function()
print(module.inventory)
if not module.inventory then
warn("(Client) Waiting for inventory...")
repeat wait() until module.inventory
end
return module.inventory
end
return module