I want to generate a random character by using hexadecimal codes (\65-90). However, whenever I use "", Roblox says everything after is an unfinished string. If I use "\" + (lets say) 65, then it prints "\65" instead of "A". I use the second backslash to fix the error.
I'd rather not create a table with all the letters and iterate through because I find this to be more useful, given it's possible.
-- Here's what I have so far
-- This is broken because of the single backslash
local Code = {}
for i = 1, 10 do
table.insert(Code, "\" ..tostring(math.random(65, 90)))
print(Code[i])
end
Any pointers would be greatly appreciated, thank you!

1 comment
That right there is exactly what I needed! Thank you very much!