Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.setBackgroundColor(colors.white)
- term.clear()
- term.setCursorPos(22,10)
- term.setTextColor(colors.blue)
- print("Twatter")
- sleep(1)
- local i = 1
- repeat
- term.setCursorPos(25,12)
- print("X")
- sleep(0.2)
- term.setCursorPos(26,13)
- print("X")
- sleep(0.2)
- term.setCursorPos(25,14)
- print("X")
- sleep(0.2)
- term.setCursorPos(24,13)
- print("X")
- sleep(0.2)
- term.setCursorPos(25,12)
- print(" ")
- sleep(0.2)
- term.setCursorPos(26,13)
- print(" ")
- sleep(0.2)
- term.setCursorPos(25,14)
- print(" ")
- sleep(0.2)
- term.setCursorPos(24,13)
- print(" ")
- sleep(0.2)
- i = i + 1
- until i == 3
- term.clear()
- username = "cyborgtwins"
- password = "lucydog9"
- term.setCursorPos(22,10)
- print("Twatter")
- term.setCursorPos(14,12)
- write("Username: ")
- user = read()
- term.setCursorPos(14,13)
- write("Password: ")
- pass = read()
- if user == username == true then
- if pass == password == true then
- valid = true
- elseif user == username == false then
- elseif pass == password == false then
- valid = false
- end
- end
- if valid then
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.blue)
- print(" ")
- term.setCursorPos(1,2)
- print(" ")
- term.setCursorPos(1,3)
- print(" ")
- term.setTextColor(colors.white)
- term.setCursorPos(1,1)
- print("Twatter")
- term.setCursorPos(11,2)
- print("Home")
- term.setCursorPos(23,2)
- print("search")
- term.setCursorPos(38,2)
- print("you")
- sleep(10)
- else
- term.clear()
- shell.run("startup")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement