Jump to content




Door Lock...


6 replies to this topic

#1 usernametook

  • New Members
  • 5 posts
  • LocationNY, USA

Posted 16 February 2012 - 07:51 AM

First make a program called startup to prevent the lock from being terminated... (btw --- means its somthing different like the edit means that in the screen then write the code :D/>)
---------------------
edit startup
---------------------
while true do
shell.run "lock"
end

---------------------
now for the lock itself :D/>...
---------------------
edit lock
---------------------
pass = "password"
write "Password: "

read = ("*")
if input == pass then
print "Welcome!"
rs.setOutput("back" true)
rs.setOutput("right" true)
rs.setOutput("left" true)
sleep(3.5)
rs.setOutput("back" false)
rs.setOutput("right" false)
rs.setOutput("left" false)

else

print "Incorrect Password!"
sleep(2)
os.reboot()
end
---------------------

#2 Xtansia

  • Members
  • 492 posts
  • LocationNew Zealand

Posted 16 February 2012 - 08:33 AM

Why didn't you use code tags? And spoiler tags?

#3 usernametook

  • New Members
  • 5 posts
  • LocationNY, USA

Posted 16 February 2012 - 08:35 AM

View Posttomass1996, on 16 February 2012 - 08:33 AM, said:

Why didn't you use code tags? And spoiler tags?
i dunno how :D/>

#4 Xtansia

  • Members
  • 492 posts
  • LocationNew Zealand

Posted 16 February 2012 - 08:40 AM

View Postusernametook, on 16 February 2012 - 08:35 AM, said:

View Posttomass1996, on 16 February 2012 - 08:33 AM, said:

Why didn't you use code tags? And spoiler tags?
i dunno how :D/>

Code tags: [.code]Cool Code[./code]
Spoiler tags: [.spoiler]Long Text[./spoiler]
You can even nest them:
[.spoiler][.code]Ultra long code[./code][./spoiler]
Just remove the dots.

#5 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 16 February 2012 - 09:11 AM

Now make it hack proof.

#6 bbc100

  • Members
  • 5 posts

Posted 20 February 2012 - 05:57 AM

how do you finish it?

#7 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 20 February 2012 - 01:54 PM

View Postbbc100, on 20 February 2012 - 05:57 AM, said:

how do you finish it?
http://www.computerc...topic/61-ctrlt/





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users