Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- os.pullEvent = os.pullEventRaw
- local password = "shishftw"
- term.clear()
- term.setCursorPos(1,1)
- print ("Inserisci la password.")
- local input = read("*")
- if input == password then
- print("Password corretta.")
- rs.setOutput ("right", true)
- rs.setOutput ("left", true)
- sleep(4)
- rs.setOutput ("right", false)
- rs.setOutput ("left", false)
- else
- print("Password sbagliata.")
- sleep(3)
- term.clear()
- term.setCursorPos(1,1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement