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")
- term.clear() -- Clears the screen
- term.setCursorPos(1, 1)
- peripheral.wrap("top").write("Closing in.. 10")
- sleep(1)
- peripheral.wrap("top").clear() -- Clears the screen
- peripheral.wrap("top").setCursorPos(1, 1)
- peripheral.wrap("top").write("Closing in.. 9")
- sleep(1)
- peripheral.wrap("top").clear() -- Clears the screen
- peripheral.wrap("top").setCursorPos(1, 1)
- peripheral.wrap("top").write("Closing in.. 8")
- sleep(1)
- peripheral.wrap("top").clear() -- Clears the screen
- peripheral.wrap("top").setCursorPos(1, 1)
- peripheral.wrap("top").write("Closing in.. 7")
- sleep(1)
- peripheral.wrap("top").clear() -- Clears the screen
- peripheral.wrap("top").setCursorPos(1, 1)
- peripheral.wrap("top").write("Closing in.. 6")
- sleep(1)
- peripheral.wrap("top").clear() -- Clears the screen
- peripheral.wrap("top").setCursorPos(1, 1)
- peripheral.wrap("top").write("Closing in.. 5")
- sleep(1)
- peripheral.wrap("top").clear() -- Clears the screen
- peripheral.wrap("top").setCursorPos(1, 1)
- peripheral.wrap("top").write("Closing in.. 4")
- sleep(1)
- peripheral.wrap("top").clear() -- Clears the screen
- peripheral.wrap("top").setCursorPos(1, 1)
- peripheral.wrap("top").write("Closing in.. 3")
- sleep(1)
- peripheral.wrap("top").clear() -- Clears the screen
- peripheral.wrap("top").setCursorPos(1, 1)
- peripheral.wrap("top").write("Closing in.. 2")
- sleep(1)
- peripheral.wrap("top").clear() -- Clears the screen
- peripheral.wrap("top").setCursorPos(1, 1)
- peripheral.wrap("top").write("Closing in.. 1")
- peripheral.wrap("top").setCursorPos(1, 1)
- sleep(1)
- peripheral.wrap("top").write("Closed please wait.")
- peripheral.wrap("top").setCursorPos(1, 1)
- sleep(1)
- peripheral.wrap("top").write("Closed please wait..")
- peripheral.wrap("top").setCursorPos(1, 1)
- sleep(1)
- peripheral.wrap("top").write("Closed please wait...")
- peripheral.wrap("top").setCursorPos(1, 1)
- else
- print("Incorrect password")
- sleep(2)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement