Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function authUser(password)
- local validPassword = false
- local userInput = ""
- while not validPassword do
- userInput = io.read()
- if userInput == password then
- validPassword = true
- end
- end
- require("term").clear()
- end
- authUser("Ranger")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement