Advertisement
Guest User

startup

a guest
Oct 12th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.80 KB | None | 0 0
  1. --Login
  2. --Sasha_King / CC54
  3. term.clear()
  4. print(".__________________________.")
  5. print("|                          |")
  6. print("| Login: ", "                 |")
  7. print("| Password: ", "              |")
  8. print("|__________________________|")
  9.  
  10. term.setCursorPos(9, 4)
  11. local userName = ("Sasha_King")
  12.   io.read()
  13.   if io.read() == username then
  14.     term.setCursorPos(9, 5)
  15.     return else
  16.       term.setCursorPos(1, 7)
  17.       print("Wrong Username")
  18.       term.setCursorPos(9, 4)
  19.     end
  20.    
  21.    
  22.    
  23.    
  24. term.setCursorPos(12, 5)
  25. local passWord = ("CC54")
  26.   io.read()
  27.   if io.read() == passWord then
  28.     term.clear()
  29.     term.setCursorPos(1, 1)
  30.     else
  31.       term.setCursorPos(8, 1)
  32.       print("Wrong Password")
  33.       term.setCursorPos(9, 5)
  34.      end
  35. term.clear()
  36. term.setCursorPos(1, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement