BrinkerVII

mock-text

May 16th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. #!/bin/lua
  2.  
  3. local caps = true
  4. local line = ""
  5. for i, v in pairs(arg) do
  6.     if i >= 1 then
  7.         local str, sv = "", tostring(v)
  8.         for n = 1, #sv do
  9.             if caps then
  10.                 str = str .. sv:sub(n, n):upper()
  11.             else
  12.                 str = str .. sv:sub(n, n):lower()
  13.             end
  14.             caps = not caps
  15.         end
  16.  
  17.         line = line .. str .. " "
  18.     end
  19. end
  20.  
  21. print(line)
Advertisement
Add Comment
Please, Sign In to add comment