Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local str = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- local str2 = "" -- don't modify this variable
- local kek = 1
- for i=1,#str do
- if kek == 1 and string.sub(str,i,i) ~= " " then
- kek = kek + 1
- str2 = str2.."***"..string.sub(str,i,i).."*** "
- elseif kek == 2 and string.sub(str,i,i) ~= " " then
- kek = kek + 1
- str2 = str2.."**"..string.sub(str,i,i).."** "
- elseif kek == 3 and string.sub(str,i,i) ~= " " then
- kek = kek + 1
- str2 = str2.."*"..string.sub(str,i,i).."* "
- elseif kek == 4 and string.sub(str,i,i) ~= " " then
- kek = 1
- str2 = str2.."~~"..string.sub(str,i,i).."~~ "
- end
- end
- print(str2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement