Guest User

sign

a guest
Jan 27th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. --Settings
  2. mon = peripheral.wrap("top") --Screen Side
  3. mon.setTextScale(3)           --Text Size
  4. mon.setBackgroundColor(2)
  5. mon.setTextColor(32768)
  6. strtpos = 20                  --Start position on screen
  7. speed = 0.1                   --Scroll Speed (Seconds)
  8. text = "Welcome to Reign Station!"    --Displayed Text
  9.  
  10. pos = strtpos
  11. poslimit = 0 - strtpos
  12.  
  13. while true do
  14.  mon.clear()
  15.  mon.setCursorPos(pos, 1)
  16.  mon.write(text)
  17.  sleep(speed)
  18.  if pos == poslimit then
  19.   pos = strtpos
  20.  else
  21.   pos = pos - 1
  22.  end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment