This could be simple , this could not be possible however I wanna know if anybody knows a way to get from a table name to a string for example how would I reference ‘global opinions’ as a string value?
I’m confused by the question.
Hopefully this helps:
is equivalent to
DataTable[ 'NumberLists' ][ 'GlobalOpinions' ]
for index, value in pairs( DataTable.NumberLists ) do print( index ) end
will print the strings GlobalOpinions and PlayerStats.
Edit: it appears you self-identified as a moron just before I posted. Oh well, it might help some beginners out there.
In the dictionary a key without apostrophes around it or quotations is the same as a string.