Advertisement
Guest User

startup.lua

a guest
Jun 26th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. local password = "thing"
  2. local i = 0
  3. local lock = false
  4. shell.run("clear")
  5. print("password?")
  6. while true do
  7.     if read() == password then
  8.         if lock == false then
  9.             return
  10.             shell.run("clear")
  11.             else
  12.             shell.run("clear")
  13.             print("Locked")
  14.         end
  15.         else
  16.         if lock == false then
  17.             if i == 2 then
  18.                 lock = true
  19.             end
  20.             shell.run("clear")
  21.             print("wrong password.")
  22.             print("password?")
  23.             i = i + 1
  24.         else
  25.             shell.run("clear")
  26.             print("Locked")
  27.         end
  28.     end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement