Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local startingMoney = 1000
- shell.run("clear")
- print("Please enter a username to continue:")
- repeat
- term.write(">")
- wantedUsername = read()
- if(fs.exists(wantedUsername)) then
- print("That username is unavalible, please enter a valid one:")
- wantedUsername = nil
- end
- until wantedUsername ~= nil
- local userFile = fs.open(wantedUsername, "w")
- print("Please enter a password:")
- term.write(">")
- local password = read("*")
- userFile.writeLine(password .. " " .. startingMoney)
- userFile.close()
Add Comment
Please, Sign In to add comment