View difference between Paste ID: XfJdj1np and QAR3NKUf
SHOW: | | - or go back to the newest paste.
1
-- Lock system
2
print("Welcome to Kristian's terminal");
3
print("Enter the password to continue: ");
4
5
sRealPassword = "nexusrocks";
6
sSymbol = "*";
7
8
sInput = read(sSymbol);
9
if (sRealPassword == sInput) then
10
	print("You are in");
11
	redstone.setOutput("left", true);
12
	sleep(5);
13
	redstone.setOutput("left", false);
14-
os.reboot()
14+
	os.reboot()
15
else
16
	print("Incorrect password");
17-
os.reboot()
17+
	os.reboot()
18
end