Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(1, 1)
- username = {"12345"}
- write("Password: ")
- pass = read('*')
- for i=1, #username do
- if pass == username[i] then
- access = true
- end
- end
- if access == true then
- print("Logging in...")
- sleep(1)
- print("Welcome")
- sleep(1)
- term.clear() -- Clears the screen
- term.setCursorPos(1, 1)
- shell.run("redpulse left 1 10", "cd10")
- sleep(2)
- os.reboot()
- else
- print("Incorrect password")
- sleep(2)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement