Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chat = peripheral.wrap("bottom")
- function drs()
- if rs.getOutput("right") == true then
- rs.setOutput("left", false)
- rs.setOutput("right", false)
- else
- rs.setOutput("left", true)
- rs.setOutput("right", true)
- end
- end
- while true do
- a, b, c = os.pullEvent("chat")
- var = string.match(c, "door")
- if var == "door" then
- drs()
- else
- var1 = string.match(c, "Door")
- if var1 == "Door" then
- drs()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement