Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run(".settings")
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(15,8)
- write("Username: ")
- user = read()
- term.setCursorPos(15,9)
- write("Password: ")
- pass = read("*")
- for i=1, #username do
- if user == username[i] and pass == password[i] then
- access = true
- end
- end
- if access == true then
- term.clear()
- term.setCursorPos(15,8)
- print("Welcome Back, " .. user .. "!")
- sleep(3)
- else
- term.setCursorPos(12,8)
- print("Incorrect Login Details")
- sleep(2)
- os.reboot()
- end
Add Comment
Please, Sign In to add comment