Lorc520

ComputerPassword

Dec 1st, 2022 (edited)
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | Gaming | 0 0
  1. local password = "42069"
  2. print ("Enter Password")
  3. local input = read("*")
  4. if input == password then
  5. print("Password is correct. Access granted.")
  6. else
  7. print("Password is incorrect. Access denied.")
  8. end
  9.  
  10. print("what is your name?")
  11. local inputname = read()
  12. term.setTextColor(colors.red)
  13. print(inputname)
  14. term.setTextColor(colors.white)
  15. print("good day sir")
Advertisement
Add Comment
Please, Sign In to add comment