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;
1 | tableA = { } |
2 | local CM = { } |
3 |
4 | function CM.GetTA() |
5 | return tableA |
6 | end |
7 |
8 | return CM |
Script;
1 | local CM = require(Module) |
2 |
3 | local tableA = CM.GetTA() --this or |
4 | CM.tableA --this |
I believe you can have a variable that looks like this,
1 | CM.Variable = "Whatever" |
Then you can access it like,
1 | local CM = require(Module) |
2 | local newVariable = CM.Variable |