Posted 30 November 2013 - 03:58 AM
So i have a door lock for my server im trying to get it to work as intended everything works except the redstone signal and for some reason it will except any username and password….im not sure what im doing wrong if anyone could help id love it…..
i apologize that it isnt in code form notpad++ didnt want to work for me lol
local username1 = "Plague"
local password1 = "5628"
local username2 = "Notyro"
local password2= "josh123"
term.clear()
print ("welcome select an option.")
print ("[1] Login")
print ("[2] Sutdown")
write (">")
input = read()
if input == "2" then
os.shutdown()
elseif input == "1" then
print ("Please Login.")
write ("Username: ")
local input = read()
if input == username1 or uesrname2 then
write ("Password: ")
local input = read()
in input == password1 or password2 then
print ("Access Granted.")
redstone.setOutPut("right", true)
sleep (4)
redstone.setOutPut("right", false)
os.reboot()
else
print "Access Denied"
sleep (1.5)
os.reboot()
end
end
i apologize that it isnt in code form notpad++ didnt want to work for me lol
Edited by