Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- local password = "pwd"
- local debug = "pwd"
- print("Enter password")
- local pass = read("*")
- function openDoor()
- for i = 0, 3, 1 do
- rs.setBundledOutput("side",colors.green)
- sleep(0.5)
- rs.setBundledOutput("side",0)
- sleep(0.5)
- end--green
- end
- function closeDoor()
- for i = 0, 3, 1 do
- rs.setBundledOutput("side", colors.lightBlue)
- sleep(0.5)
- rs.setBundledOutput("side", 0)
- sleep(0.5)
- end--lightblue
- end
- if password == pass then
- print("welcome")
- print(":D")
- openDoor()
- sleep(10)
- closeDoor()
- end
- if debug == pass then
- print("Debug Mode!")
- end
- if debug ~= pass and password ~= pass then
- print("Wrong password, try again in 5 seconds")
- sleep(5)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment