Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do -- While true is true repeat this
- shell.run("clear")
- print("Oil Pump Station Control")
- if rs.getOutput("back") then
- PumpStatus = "Running"
- else
- PumpStatus = "Stopped"
- end
- print("Pump status: "..PumpStatus)
- write("Password: ")
- Ignore,ReadPassword = pcall(read) -- pcall() stops error codes, Which is what a terminate event is.
- if ReadPassword == "mypasshere" then
- rs.setOutput("back", not rs.getOutput("back"))
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement