Advertisement
BobMe

discord thing

Oct 19th, 2019
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. local str = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
  2. local str2 = "" -- don't modify this variable
  3. local kek = 1
  4. for i=1,#str do
  5. if kek == 1 and string.sub(str,i,i) ~= " " then
  6. kek = kek + 1
  7. str2 = str2.."***"..string.sub(str,i,i).."*** "
  8. elseif kek == 2 and string.sub(str,i,i) ~= " " then
  9. kek = kek + 1
  10. str2 = str2.."**"..string.sub(str,i,i).."** "
  11. elseif kek == 3 and string.sub(str,i,i) ~= " " then
  12. kek = kek + 1
  13. str2 = str2.."*"..string.sub(str,i,i).."* "
  14. elseif kek == 4 and string.sub(str,i,i) ~= " " then
  15. kek = 1
  16. str2 = str2.."~~"..string.sub(str,i,i).."~~ "
  17. end
  18. end
  19.  
  20. print(str2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement