if not I would have this is startup:
function os.pullEvent()
local event, p1, p2, p3, p4, p5
if event == "terminal" then
end
return event, p1, p2, p3, p4, p5
end
term.clear()
term.setCursorPos(1, 1)
print "Enter Password"
print " "
write("Password:")
correctpass = "123" -- not the actual password
pass = read("*")
if pass == (correcrpass) then
term.clear()
term.setCursorPos(1, 1)
write("Correct")
sleep(2)
term.clear()
term.setCursorPos(1, 1)
print "Welcome"
term.setCursorPos(1, 3)
else
print " "
write("Incorrect")
sleep(2)
shell.run("startup")
end
sorry typo I meant have it in startup
Ive already checked out that and im new to CC so I don't really get it :(/>
I found this code but it only activates not deactivate
while true do
os.pullEvent("redstone")
if rs.getInput("back") then
break
end
end