Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Made by LUModder
- local function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- os.pullEvent = os.pullEventRaw
- local tries = 3 --Optional change
- while tries > 0 do
- clear()
- print("A password is required to access this computer.")
- write("Password: ")
- local input = read("*")
- if input == "YourPasswordHere" then --Change this
- print("Password Accepted. Access Granted.")
- sleep(1)
- clear()
- shell.run("shell")
- else
- print("Password Rejected. Access Denied.")
- tries = tries - 1
- print(tries.." tries remaining.")
- sleep(1)
- end
- end
- local sec = 10 --5 - 10 seconds recomended
- while sec ~= 0 do
- clear()
- print("Please try again in "..sec.." seconds.")
- sec = sec - 1
- sleep(1)
- end
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment