Guest User

hello.lua

a guest
Jan 24th, 2020
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2.     id, msg, protocol = rednet.receive("open")
  3.     if id == 144 then
  4.         if fs.exists("10sec") and fs.exists("ultrasecure.lua") then
  5.         return
  6.         end
  7.             print("Unlocking door...")
  8.             rs.setOutput("right", true)
  9.             sleep(3)
  10.             rs.setOutput("right", false)
  11.         else
  12.             print("")
  13.             print("Funfact:")
  14.             print("")
  15.             print("Some rednet message was broadcasted, but it")
  16.             print("has nothing to do with this door system.")
  17.             print("The contents were: " .. msg)
  18.         end
  19.     end
RAW Paste Data