-- passwordProgram -- v1.0.0 -- By Biffyn -- https://www.youtube.com/BiffynGaming -- Change program name to 'startup' to run all the time local atempts = 3 local function clear() term.clear() term.setCursorPos(1,1) end os.pullEvent = os.pullEventRaw --password while atempts > 0 do clear() print("A password is required to access this computer") write("Password: ") local input = read("*") --access granted if input == "losumg" then print("Password Accepted. Access Granted") sleep(3) clear() shell.run("shell") else --access denied print("Password Rejected. Access Denied") atempts = atempts - 1 print(atempts.." atempts remaining.") sleep(3) end end --Try again local sec = 10 while sec ~= 0 do clear() print("Please try again in "..sec.." seconds") sec = sec - 1 sleep(3) end os.reboot()