Guest User

Untitled

a guest
Apr 30th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mon = peripheral.wrap("monitor_0")
  2. SensDoor = peripheral.wrap("top")
  3. users = {"LokeYourLord","00yoshi"}
  4. while true do
  5. sleep(5)
  6. mon.clear()
  7. mon.setCursorPos(1,1)
  8. mon.setTextScale(0.5)
  9. mon.write("Stand on")
  10. mon.write("the Scanner")
  11. mon.write("Block for 5 seconds!")
  12. OpenDoor = false
  13. --Check for players
  14. for value,name in pairs(users) do
  15. for T,PlayerTable in pairs(SensDoor.getPlayers()) do
  16. if PlayerTable.name==name then
  17. OpenDoor = true
  18. end
  19. end
  20. end
  21. --Do stuff
  22. if OpenDoor then
  23. mon.write("The doors")
  24. mon.write("are opening, stand by!")
  25. rs.setOutput("left", true)
  26. sleep(6)
  27. rs.setOutput("left", false)
  28. end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment