Guest User

startup

a guest
Nov 11th, 2019
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2.  
  3. local username
  4. local password
  5. local success1 = false
  6. local success2 = false
  7.  
  8. function login()
  9. print("Enter your username")
  10. username = read()
  11. print("Enter your password")
  12. password = read()
  13.  
  14. if (username == "JackNoir8")
  15.  then success1 = true
  16.   end
  17.  
  18. if (password == "password")
  19.  then success2 = true
  20.   end
  21.  
  22. if (success1 && success2)
  23.  then print("Login Attempt Successful")
  24.  else print("Login Attempt Unsuccessful") login()
  25. end
  26.  
  27. end
Advertisement
Add Comment
Please, Sign In to add comment