Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("back")
- SensDoor = peripheral.wrap("top")
- users = {"LokeYourLord","bassern"}
- while true do
- sleep(5)
- mon.clear
- mon.setTextScale(1)
- mon.setCursorPos(1,1)
- mon.write("Stand on the Scanner Block for 5 seconds!")
- OpenDoor = false
- --Check for players
- for value,name in pairs(users) do
- for T,PlayerTable in pairs(SensDoor.getPlayers()) do
- if PlayerTable.name==name then
- OpenDoor = true
- end
- end
- end
- --Do stuff
- if OpenDoor then
- mon.write("The doors are opening, stand by!")
- rs.setOutput("left", true)
- sleep(6)
- rs.setOutput("left", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement