cobra_tomtrein

Untitled

Jul 24th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. text = "this string is for splitting" -- our text
  2. for a = 0, string.len(text) do -- for 1 to the number of letters in our text + 1
  3. print (string.sub(text, a,a)) -- split the string with the start and end at "a"
  4. end -- repeat untill the for loop ends
Advertisement
Add Comment
Please, Sign In to add comment