Advertisement
bobmarley12345

Untitled

Jan 6th, 2019
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. mon = peripheral.wrap("back")
  2. mon.setTextScale(4)
  3. strtpos = 12
  4. speed = 0.2
  5. text = "Rush's Shop!"
  6.  
  7. pos = strtpos
  8. poslimit = 0 - strtpos
  9.  
  10. while true do
  11.  mon.clear()
  12.  mon.setBackgroundColor(32768)
  13.  mon.setTextColor(16384)
  14.  mon.setCursorPos(pos, 2)
  15.  mon.write(text)
  16.  sleep(0.3)
  17.  if pos == poslimit then
  18.   pos = strtpos
  19.  else
  20.   pos = pos - 1
  21.  end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement