Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.clear()
- local password = "unknown"
- term.setCursorPos(15,1)
- write("System Authorization")
- term.setCursorPos(15,2)
- textutils.slowPrint("Your Password")
- term.setCursorPos(15,3)
- local input = read("*")
- if (input == password) then
- term.clear()
- term.setCursorPos(15,1)
- write("System Authorization")
- term.setCursorPos(15,2)
- textutils.slowPrint("Nickname ")
- term.setCursorPos(15,3)
- local name = read()
- term.clear()
- term.setCursorPos(15,1)
- for i=0,100,10 do
- term.setCursorPos(15,i/10)
- print("Loading system ",i,"%")
- sleep(0)
- end
- sleep(1)
- term.clear()
- term.setCursorPos(15,1)
- write("System Authorization")
- term.setCursorPos(15,2)
- textutils.slowPrint(" Welcome "..name.." ")
- term.setCursorPos(1,18)
- write("My created GravityFolls")
- sleep(1)
- term.setCursorPos(1,1)
- term.clear()
- else
- term.clear()
- term.setCursorPos(15,1)
- textutils.slowPrint("Bad password")
- sleep(0,70)
- term.clear()
- term.setCursorPos(15,2)
- textutils.slowPrint("Restart")
- sleep(1)
- term.clear()
- term.setCursorPos(15,1)
- shell.run("reboot")
- end
Advertisement
Add Comment
Please, Sign In to add comment