I don’t 100% understand what you’re trying to do exactly. But I think what you want to do is create a table with your variables assigned to a key you can fetch whenever.
local = Variables = { } --blank table
if not Variables["b2"] then --if the index doesn't exist then you can assign it
Variables["b2"] = test
end
If this doesn’t answer your question or you are a bit confused feel free to let me know!
Yea the best way to modify/reference variables would be from a table, since you can not assign to a variable from another variable or concatenate a variable name, but in a table you can concatenate for the key to reference a value in the table.
local testTable = { b2 = "hello" }
local b = "b"
local two = 2
print(testTable[b..two]) --> hello