Advertisement
Mackan90096

Untitled

Jun 6th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. m = peripheral.wrap("top")
  2.  
  3. x = 1
  4.  
  5. local w = ["PENIS", "HITLER", "NO", "YES", "RANDOM", "LOREM", "IPSUM", "SEX", "SUCH", "WOW", "DOGE", "BUTT"]
  6.  
  7. m.setTextScale(2)
  8.  
  9. function c(ms)
  10. local len = ms:len()
  11. w,y = m.getSize()
  12. xCoords = tonumber(math.ceil((w/2)-(len/2)))
  13. m.setCursorPos(xCoords, y/2)
  14. m.write(ms)
  15. end
  16.  
  17. while true do
  18. if(x >= 32768) then
  19. x = 1
  20. else
  21. x = x*2
  22. end
  23. --print(x)
  24. m.setBackgroundColor(x)
  25. m.clear()
  26. c(w[math.random(1, w:len())])
  27. sleep(1)
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement