Advertisement
Guest User

startup

a guest
Mar 28th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. local monitor = peripheral.wrap("top")
  2. local score = 0
  3.  
  4. while true do
  5. local event = os.pullEvent("redstone")
  6. score = redstone.getAnalogInput("right")
  7. monitor.setTextScale(5)
  8.  
  9. if score == 0 then
  10. print("")
  11. else
  12. print(score)
  13. monitor.clear()
  14. monitor.setCursorPos(1,1)
  15. monitor.write(score)
  16.  
  17. end
  18.  
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement