SHARE
TWEET

startup.lua

a guest Oct 21st, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pw = "Nooters"
  2.  
  3. rs.setAnalogOutput("back",15)
  4.  
  5. function setLaser(str)
  6. local power = 0
  7.     if str == pw then
  8.         power = 0
  9.     else
  10.      power = 15
  11.      end
  12.     rs.setAnalogOutput("back",power)
  13. end
  14.  
  15. while true do
  16.     term.clear()
  17.     term.setCursorBlink(true)
  18.     term.setCursorPos(1,1)
  19.     textutils.slowWrite([[Welcome to the Lab...
  20.     Enter Password:]] )
  21.     local input = read("*")
  22.     setLaser(input)
  23.     os.sleep(5)
  24.     rs.setAnalogOutput("back",15)
  25. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top