Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- while true do
- local username = ""
- local password = ""
- local side1 = "bottom"
- local side2 = "top"
- term.setCursorPos(1, 2)
- print ("Computercraft Security System Made by MSPVIPBoy")
- term.setCursorPos(6, 5)
- term.write("Username: ")
- username = read()
- if username ~= "MSPVIPBoy" then
- term.setCursorPos(6,6)
- term.write("Password: ")
- password = read("*")
- if password ~= "connor04" then
- term.setCursorPos(6,8)
- print ("Access Denid")
- rs.setOutput(side1,true)
- sleep(3)
- rs.setOutput(side1,false)
- os.shutdown()
- else
- term.setCursorPos(6,7 )
- print ("Access Granted")
- rs.setOutput(side2,true)
- break
- end
- end
- end
- print(dir)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement