Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local input = "Frickle frackle, your mom a crackle. Hippity hoppity, my mom wants more property. Skiddadle skidoodle, I stole your dad's poodle."
- --compression vowel thing start idk
- local output = ""
- function isVowel(x)
- vowels = {}
- vowels["a"] = "a";vowels["e"] = "e";vowels["i"] = "i";vowels["o"] = "o";vowels["u"] = "u";
- if vowels[x:lower()] ~= nil then
- return false
- else
- return true
- end
- end
- for i=1,#input do
- if isVowel(string.sub(input,i,i)) == true then
- output = output..string.sub(input,i,i)
- end
- end
- print("OUTPUT:\n\n"..output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement