Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function unsetAll(sSide)
- redstone.setBundledOutput(sSide, 0)
- end
- function up(side)
- x=0
- while x ~= 5 do
- redstone.setBundledOutput(side, colors.yellow)
- sleep(1)
- unsetAll(side)
- sleep(1)
- x=x+1
- end
- end
- function down(side)
- x=0
- while x ~= 5 do
- redstone.setBundledOutput(side, colors.white)
- sleep(1)
- unsetAll(side)
- sleep(1)
- x=x+1
- end
- end
- function dotAndDie()
- for i=0, 5 do
- write(".")
- sleep(0.5)
- end
- os.reboot()
- end
- access= false
- print("Vsandrewuk's Secret Bunker")
- print("")
- print("Username: ")
- username= read()
- if username == "test" then
- print("Password: ")
- password = read("*")
- if password =="test" then
- access = true
- else
- print("Error, you have entered the wrong password, Terminating script.")
- dotAndDie()
- end
- else
- print("Error, you have entered and invalid username, Terminating script.")
- dotAndDie()
- end
- if access == true then
- print("Successful login, lowering entrance")
- sleep(0.5)
- down("back")
- sleep(5)
- up("back")
- print("Terminating Script")
- dotAndDie()
- end
Add Comment
Please, Sign In to add comment