Advertisement
Guest User

startup

a guest
Aug 1st, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1.     args = {...}
  2.     Name = (args[1])
  3.     local pos = 10
  4.     mon = peripheral.wrap("front")
  5.     mon.clear()
  6.     color = 1
  7.     mon.setBackgroundColor(32768)
  8.     mon.setTextColor(1)
  9.     mon.setTextScale(4)
  10.     while true do
  11.      if pos==-10 then
  12.       pos = 10
  13.      end
  14.      mon.clear()
  15.      mon.setCursorPos(pos,1)
  16.      mon.write("Data Center ")
  17.      pos = pos-1
  18.      os.sleep(0.2) -- Replace 0.15 with any number you want (In seconds)
  19.      if (color < 16000) then
  20.       color = color + color
  21.      else
  22.       color = 1
  23.      end
  24.      mon.setBackgroundColor(32768)
  25.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement