Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- correct = "pass" -- Put your password in between the ""
- print("Iron Door Security Lock By Denvys5 and Pro") -- Name of the program
- write("Password: ") -- writes out "Password: "on your computer
- password = read()
- if password == (correct) then -- If it equals what you password up the top then it will
- print("Access Granted.") -- Print "Access Granted." on your computer
- redstone.setOutput("left", true) -- emits a redstone pulse to the LEFT side of the computer
- sleep(5) -- holds the redstone pulse for 5 extra seconds
- redstone.setOutput("left", false) -- this stops the redstone pulse
- os.shutdown() -- shuts down the computer
- else -- if you don't enter the password the first time then
- print("Alert!!!") -- Print "Alert" on your computer
- redstone.setOutput("right", true) -- emits a redstone pulse to the RIGHT side of the computer
- sleep(10) -- holds the redstone pulse for 5 extra seconds
- redstone.setOutput("right", false) -- this stops the redstone pulse
- repeat -- it will repeat the proccess
- write("Password: ") -- writes out "Password: "on your monitor
- password = read()
- until password == (correct) -- it will repeat until it equals what you password up the top then it will
- print("Access Granted.") -- Print "Access Granted." on your computer
- redstone.setOutput("left", true) -- emits a redstone pulse to the LEFT side of the computer
- sleep(5) -- holds the redstone pulse for 5 extra seconds
- redstone.setOutput("left", false) -- this stops the redstone pulse
- os.shutdown() -- shuts down the computer
- end -- ends the program
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement