Lua Substring | Dapatkan char dari dari indeks

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