Advertisement
Guest User

startup.lua

a guest
Feb 17th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. local password = "1234"
  3.  
  4.  
  5. print("Enter password")
  6.  
  7. local correct = false
  8. while correct == false do
  9.     local userPassword = read()
  10.     if password == userPassword then
  11.         correct = true
  12.     else
  13.         print("Wrong password!")
  14.      end
  15. end
  16. print("You're in!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement