Guest User

test

a guest
Jul 27th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. change = function(char)
  2. local response = http.get(
  3. "http://pastebin.com/raw.php?i=0ZGDdCwk"
  4. )
  5. while true do
  6.   testchar = response.readLine()
  7.   if char == testchar then
  8.     for i=1, 5 do
  9.       newchar = response.readLine()
  10.     end
  11.   response.close()
  12.   break
  13.   end
  14. end
  15. return newchar
  16. end
  17.  
  18. print(change(read()))
  19.  
  20. hey = read()
  21. for a=1, #hey do
  22.   thenewchar = change(string.sub(hey, a, a))
  23.   if a==1 then
  24.     finalstring = thenewchar
  25.   else
  26.     finalstring = finalstring..thenewchar
  27.   end
  28. end
  29. print(finalstring)
Advertisement
Add Comment
Please, Sign In to add comment