Advertisement
AdditionalPylons

startup

Feb 9th, 2024 (edited)
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | Source Code | 0 0
  1. if settings.get("password") ~= "" then
  2. term.clear()
  3. w,h = term.getSize()
  4. term.setCursorPos(w/2-7,h/2)
  5. print("COMPUTER LOCKED")
  6. while true do
  7. write("Password: ")
  8. st,inp = pcall(read,"*")
  9. if inp == settings.get("password") then
  10. break
  11. end
  12. term.clear()
  13. term.setCursorPos(w/2-6,h/2)
  14. print("ACCESS DENIED")
  15. end
  16. term.clear()
  17. term.setCursorPos(1,1)
  18. end
  19. shell.run("os \UserFiles")
  20.  
Tags: lua
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement