Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- redstone.setOutput("left", true)
- correctpassword = "HetIsNiels"
- write("What is the password? ")
- password = read()
- if password == (correctpassword) then
- write("Password correct!")
- redstone.setOutput("back", true)
- sleep(5)
- os.shutdown()
- elseif password == "edit" then
- write("Starting computer modus...")
- write("")
- redstone.setOutput("left", false)
- else
- write("Incorrect password! Shuting down the computer...")
- sleep(5)
- os.shutdown()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement