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 />)
---------------------
edit startup
---------------------
while true do
shell.run "lock"
end
---------------------
now for the lock itself />...
---------------------
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
---------------------
0
Door Lock...
Started by usernametook, Feb 16 2012 07:51 AM
6 replies to this topic
#1
Posted 16 February 2012 - 07:51 AM
#2
Posted 16 February 2012 - 08:33 AM
Why didn't you use code tags? And spoiler tags?
#4
#5
Posted 16 February 2012 - 09:11 AM
Now make it hack proof.
#6
Posted 20 February 2012 - 05:57 AM
how do you finish it?
#7
Posted 20 February 2012 - 01:54 PM
bbc100, on 20 February 2012 - 05:57 AM, said:
how do you finish it?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users