Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if fs.exists("config.txt") == true then
- local file = fs.open("config.txt", "r")
- local config = file.readAll()
- file.close()
- local lines = {}
- for line in string.gmatch(config, "[^\r\n]+") do
- table.insert(lines, line)
- end
- local name = lines[1]
- print("Hello ".. name .." please enter your password.")
- right = lines[2]
- function password()
- entered = read("*")
- if entered == right then
- print("Correct welcome ")
- sleep(1)
- shell.run("clear")
- shell.run("windows")
- else
- print("Wrong password")
- sleep(0.5)
- shell.run("clear")
- print("Try again")
- password()
- end
- end
- password()
- else
- shell.run("register")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement