I'm trying to create an inventory system, and have that player have an inventory while also displaying the inventory in a GUI. I've decided to use a table to store all of the inventory items(I don't think there is any other way) but i'm not sure how to go about getting table items in another script, if it is at all possible. Any suggestions?
Ive heard of a global variable. But tables hold the same purpose so... I think the answer may be...
_G.Table = {}
To access your table globaly
_G.Table --Do what you want with it