Hello! I am trying to convert a string into a blank table reference, if that’s what it is called. Basically, within a for loop I have, I am converting a set of data into a table. However, whenever I try to register this in a table, it comes up with ["string_here"] instead of string_here when printed. Is there any resolution for this?
What is happening:
local demo_table = {
["key_here"] = some_value;
}
What I want to happen:
local demo_table = {
key_here = some_value;
}
Any help is appreciated, as I’m trying to fix this issue soon!
My casing is that I am using setfenv on a function, but the table supplied is script-generated, as just supplying all the tables at once would be less optimized than using setfenv, and setfenv will help with organizing the script.