Advertisement
Stolar228

lockscreen.lua

Apr 13th, 2018
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local term = require("term")
  2. local pas
  3. local pasr = "4040" ---здесь пароль
  4. while true do
  5. term.clear()
  6. print("введите пароль")
  7. pas = io.read()
  8. if pas == pasr then
  9. term.clear()
  10. break
  11. else
  12. term.clear()
  13. print("введите пароль")
  14. print("error")
  15. os.sleep(1)
  16. end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement