Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Startup for gathering information--
- term.clear()
- term.setCursorPos(1,1)
- textutils.slowPrint("Add yourself to the system please.")
- os.sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("Enter desired name: ")
- local inputuser = read()
- print("Now enter desired password: ")
- local inputpass = read()
- term.clear()
- local newuser = inputuser.."="..inputpass
- print("Is user: "..inputuser.." ".."and password: "..inputpass.." ".."correct?")
- print("Options: yes or no (case sensitive)")
- local option = read()
- if option=="yes" then
- print("Done.")
- os.sleep(1)
- else
- print("Restarting!")
- os.sleep(1)
- os.reboot()
- end
- --Storing Information--
- file="users"
- local userlist = fs.open(file, "a")
- userlist.write(newuser)
- userlist.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement