_Nobody_

test

Mar 23rd, 2021 (edited)
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. local mon
  2. local timer = 600
  3. local function findMonitor()
  4. for i,v in pairs(rs.getSides()) do
  5. if peripheral.getType(v) == "monitor" then
  6. mon = peripheral.wrap(v)
  7. return
  8. end
  9. end
  10. error("No monitor found!")
  11. end
  12. findMonitor()
  13. for i = timer, 0, -1 do
  14. mon.write("Waiting", timer, "seconds!")
  15. end
Advertisement
Add Comment
Please, Sign In to add comment