call sound.system(-1) call leds.temperature(0,0) call leds.top(0,0,0) call leds.circle(0,0,0,0,0,0,0,0) onevent prox if prox.horizontal[2] > 500 then motor.left.target = 0 motor.right.target = 0 end if prox.horizontal[0] > 500 then motor.left.target = 500 motor.right.target = 0 end if prox.horizontal[4] > 500 then motor.left.target = 0 motor.right.target = 500 end if prox.horizontal[5] > 500 and prox.horizontal[6] > 500 then motor.left.target = 500 motor.right.target = 500 end