LUA SBSTRING | obtenir du char de l'index

text = "Hello world"
--text:sub(<start-index>,<end-index (inclusive)>)
--to get the word "Hello"
sub_text = text:sub(1,5)
Classy Answer