local pass1 = "open"
local pass2 = "close"
rs.setOutput("bottom", true)
while true do
term.clear()
term.setCursorPos(1,1)
print("Welcome to Silverhustle & Exor's Underground Base. Please enter a password:")
userPass = read("*")
for _, side in pairs(rs.getSides()) do
rs.setOutput(side, true)
end
if userPass == pass1 then
rs.setOutput("bottom", false)
elseif userPass == pass2 then
rs.setOutput("bottom", true)
else --
rs.setOutput("bottom", true)
end
end
But that's not until one player came to my base and used CTRL+T terminate on my code and the door automatically opens. Is there a way to prevent that from happening? Please let me know if that's possible, thank.












