Posted 25 February 2012 - 11:59 AM
I have maded a script that opens the door with a password. But it won't run…
Yeah, I'm new at LUA…
local function clearScreen()
term.clear()
print("Welcome at the house of Bennievv!")
print("Type a password please...")
while true do
if read ("*") == "«PASSWORD»" then
print ("CORRECT!")
sleep(2)
clearScreen()
print("Opening...")
redstone.setOutput("left", true)
sleep(2)
redstone.setOutput("left", false)
clearScreen()
print("Closing...")
else
print("Incorrect!")
sleep(3)
end
end
Yeah, I'm new at LUA…