I want string to use variable.
variable1 = "Hello"
a = "variable" .. 1
print(a)
but it printed variable1 (of cource),
Can I print "Hello"(variable1) using variable a?
Yes, this is exactly what tables are for - you can just rewrite your code as
local variables = {}
variables.variable1 = "Hello"
local a = "variable" .. 1
print(variables[a]) -- prints Hello
In fact, global variables (as in your example you seem to be using) are already stored in a table called _G (the global table), so in your example this would work:
variable1 = "Hello"
a = "variable" .. 1
print(_G[a])
print('"Hello"(' .. a .. ')')if that is not what you want you should improve your question.