Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------
- --Created by: Scorpionfien --
- -----------------------------
- os.pullEvent = os.pullEventRaw
- local password = "Sakura"
- local admin = "1997ChevY"
- local open = 3
- while true do
- term.clear()
- term.setCursorPos(5,5)
- print("Password Please: ")
- term.setCursorPos(6,6)
- pass = read("*")
- if pass == password then
- term.clear()
- term.setCursorPos(5,5)
- print("Welcome")
- rs.setOutput("right", true)
- sleep(open)
- rs.setOutput("right", false)
- elseif pass == admin then
- term.clear()
- term.setCursorPos(5,5)
- print("Admin Accepted")
- sleep(open)
- term.clear()
- term.setCursorPos(1,1)
- shell.run("shell")
- else
- term.clear()
- term.setCursorPos(5,5)
- print("Incorrect Password")
- sleep(open)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment