I want to get just he first character in a string
string = "Hello" print(string[1]) print(string:sub(1)) print(string.sub(1))
None of these worked.
Well "string" is a keyword used by lua i recommend not making a variable called that try something like str?
print(string.sub(str, 1,1))