while true do
os.pullEvent =os.pullEventRaw
term.clear()
term.setCursorPos(1, 1)
write("Please Enter Password: ")
input = read("*")
if input == "Password" then
redstone.setOutput("right", true)
sleep(3)
redstone.setOutput("right", false)
sleep(1)
os.reboot()
else
print("Incorrect! Try again later.")
sleep(1)
print("Shutting Down")
sleep(1)
os.reboot()
end
end
That is all


This topic is locked









