Hi ! So i've just made a simple piston secret door design and place a computer has the opening mechanism, for some reason, it keeps giving me "bios:337: [srting "startup"]:11: syntax error.
I've checked line 11 and found nothing wrong in it. Can you guys help me out, maybe im missing something.
Also, wen it did work the first time, it gave me an Error in line 5 saying couldn't reach nil or something like that.
correctpass = "PortalRoom123"
while true do
term.clear()
term.setCursorPos(1,1)
write("Welcome ! Please, enter Password Now: ")
pass = read("*")
if pass == correctpass then
write("Access Granted !")
redstone.setOutput("back",true)
sleep(10)
redstone.setOutput("back",false)
else
write("Access Denied !")
sleep(2)
end
end