Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. --Settings
  2. mon = peripheral.wrap("back")
  3. mon.setTextScale(4)
  4. strtpos = 8
  5. speed = 0.2
  6. text = "Text Here"
  7. pos = strtpos
  8. poslimit = 0 - strtpos
  9.  
  10. while true do
  11. mon.clear()
  12. mon.setCursorPos(pos, 1)
  13. mon.write(text)
  14. sleep(speed)
  15. if pos == poslimit then
  16. pos = strtpos
  17. else
  18. pos = pos - 1
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement