Ooh the possibilities. Guis, tables (_G), objects, Strings, numbers, 2 bit encryptions. Depending on the purpose. Personally, I use _G
_G.hello = function() print('Hello') end
_G.hello() --> Hello
_G.x = 10101
print(_G.x) --> 10101
So do it like this:
_G.table = {["Item"] = 0, ["Item2"] = 1, ["Item999"] = 999}
From any script, you can access this table. Just add the player's name before the table name to have a _G inventory for each player
game.Players.PlayerAdded:connect(function(p)
_G[p.Name .. "table"] = {["Item"] = 1}
end)
print(_G.table["Item"]) --> 0
|