Posted 20 November 2015 - 02:28 PM
heres the code please escuse my bad indenting
while true do
term.clear()
term.setCursorPos(1, 1)
print("please enter your login information")
sleep(1)
print(" ")
print("Username:")
local yourinput = read()
if input == "Test" then end
print("Password:")
sleep(0)
input = read("*")
if input == "Test" then end
redstone.setOutput("back", true)
print("Information correct")
sleep(2)
os.reboot()
end
else
print("Intruder detected sounding alarms")
sleep(1)
redstone.setOutput("right", true)
sleep(10)
redstone.setOutput("right", false)
sleep(1)
os.reboot()
end
end