Advertisement
Muzze77

Testscript for Daniel by Muzze77

Jan 5th, 2014
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. ------------------------------------
  2. --Testscript for Daniel by Muzze77--
  3. ------------------------------------
  4. local time = 0
  5. local function timer()
  6. time = time+1
  7. rs.setOutput("right", true)
  8. print("Vergangende Zeit: ")
  9. sleep(0.5)
  10. write(time)
  11. rs.setOutput("right", false)
  12. sleep(0.5)
  13. shell.run("clear")
  14. end
  15.  
  16. ------------------------------------
  17. while rs.getInput("left") == true do
  18. timer()
  19. end
  20. print("Kein Input")
  21. sleep(1)
  22. shell.run("reboot")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement