If I require this module script can I access tableA or do I have to access it through the functions? If it is a local value can I get the table value in the module from the script?
Module script;
tableA = {} local CM = {} function CM.GetTA() return tableA end return CM
Script;
local CM = require(Module) local tableA = CM.GetTA() --this or CM.tableA --this
I believe you can have a variable that looks like this,
CM.Variable = "Whatever"
Then you can access it like,
local CM = require(Module) local newVariable = CM.Variable