Drive-by shooting

type of assault that typically involves the perpetrator firing a weapon from within a motor vehicle and then fleeing

A drive-by shooting is when a gun is fired from a moving vehicle, at a target outside the vehicle.