Guest User

Untitled

a guest
Nov 16th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.19 KB | None | 0 0
  1. string1 = "xyz"
  2. val = string.len(string1)
  3. print(val)
  4.  
  5. local table1= {}
  6. local table2= {table1}
  7.  
  8. for i where i = 1, val do
  9.  table2[1][i] = string.sub(string1, i, i)
  10. end
  11.  
  12. print(table2[1][2])
Add Comment
Please, Sign In to add comment