Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- repeat
- print("Insert username")
- user = read()
- term.clear()
- term.setCursorPos(1,1)
- print("Insert password")
- pass = read("*")
- term.clear()
- term.setCursorPos(1,1)
- if user ~= "hooman" or pass ~= "base" then
- term.clear()
- term.setCursorPos(1,1)
- print("Incorrect login credentials")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- end
- until user == "hooman" and pass == "base"
- print("Access Granted")
- redstone.setOutput("right",true)
- sleep(5)
- redstone.setOutput("right",false)
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement