SHARE
TWEET

InfoGlassesCode

ToGamingVictor May 7th, 2018 (edited) 585 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Info Glasses
  2. --By Hannez04 with help from
  3. --SquidDev on the ComputerCraft forums
  4. local p = peripheral.wrap("right")
  5. p.clear()
  6. function pack(...)
  7.         return {...}
  8. end
  9. local message = "Test123"
  10. for i = 1, #message do
  11.   p.clear()
  12.   p.addText(3, 3, message:sub(1, i))
  13.   sleep(0.075)
  14. end
  15. sleep(3)
  16. for i = #message - 1, 1, -1 do
  17.   p.clear()
  18.   p.addText(3, 3, message:sub(1, i))
  19.   sleep(0.075)
  20. end
  21. p.clear()
  22. sleep(7)
  23. local message = "Something"
  24. for i = 1, #message do
  25.   p.clear()
  26.   p.addText(3, 3, message:sub(1, i))
  27.   sleep(0.075)
  28. end
  29. sleep(3)
  30. for i = #message - 1, 1, -1 do
  31.   p.clear()
  32.   p.addText(3, 3, message:sub(1, i))
  33.   sleep(0.075)
  34. end
  35. p.clear()
  36. sleep(7)
  37. local message = "Something else"
  38. for i = 1, #message do
  39.   p.clear()
  40.   p.addText(3, 3, message:sub(1, i))
  41.   sleep(0.075)
  42. end
  43. sleep(3)
  44. for i = #message - 1, 1, -1 do
  45.   p.clear()
  46.   p.addText(3, 3, message:sub(1, i))
  47.   sleep(0.075)
  48. end
  49. p.clear()
  50. sleep(7)
  51. os.reboot()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top