use Libraries.Robots.Lego.Buttonuse Libraries.Robots.Lego.Sounduse Libraries.Robots.Lego.TouchSensoruse Libraries.Robots.Lego.MotorButton buttonSound soundTouchSensor touchMotor motortouch:SetPort(1) //you set the port for the sensormotor:SetSpeed("B",60)motor:SetSpeed("C",60)repeat until button:IsButtonPressed(button:ESCAPE_BUTTON) motor:RotateForward("B") motor:RotateForward("C") if touch:IsPressed() motor:RotateBackward("B") motor:RotateBackward("C") sound:PlayTone(440,500) sound:PlayTone(220,500) motor:RotateForward("B") motor:RotateBackward("C") sound:PlayTone(880,333) sound:PlayTone(440,333) endend