Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pullEvent = os.pullEvent
- os.pullEvent = os.pullEventRaw
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("CreeperCity Computer Security")
- shell.run("time")
- write("Username: ")
- if read ("*") == "turtle" then
- term.clear()
- do
- local pullEvent = os.pullEvent
- os.pullEvent = os.pullEventRaw
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("CreeperCity Computer Security")
- shell.run("time")
- write("Password: ")
- if read("*") == "turtle" then
- print("Correct. You may now use the turtle")
- sleep(2)
- term.clear()
- term.setCursorPos(1, 1)
- break
- else
- print("Incorrect Password")
- sleep(1)
- end
- end
- os.pullEvent = pullEvent
- else
- print("No Such User")
- sleep(1)
- end
- end
- os.pullEvent = pullEvent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement