Advertisement
CatRabbit499

Scrolling Text

Jun 17th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. mon = peripheral.wrap("back")
  2. mon.setTextScale(4)
  3. text = "OMFG IT SCROLLS!!!!!"
  4. pos = 20
  5. while true do
  6. mon.clear()
  7. mon.setCursorPos(pos, 1)
  8. mon.write(text)
  9. sleep(0.2)
  10. if pos == -21 then
  11. pos = 20
  12. else
  13. pos = pos - 1
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement