while true do
while rs.getInput("right") do
redstone.setOutput("left",true)
end
os.sleep(2)
redstone.setOutput("left",false)