Advertisement
Guest User

Untitled

a guest
Apr 28th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. --Settings
  2. mon = peripheral.wrap("right") --Screen Side
  3. mon.setTextScale(4) --Text Size
  4. strtpos = 12 --Start position on screen
  5. speed = 0.2 --Scroll Speed (Seconds)
  6. text = "Din mor lugter af ged" --Displayed Text
  7.  
  8. pos = strtpos
  9. poslimit = 0 - strtpos
  10.  
  11. while true do
  12. mon.clear()
  13. mon.setCursorPos(pos, 1)
  14. mon.write(text)
  15. sleep(speed)
  16. if pos == poslimit then
  17. pos = strtpos
  18. else
  19. pos = pos - 1
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement