It is not necessary to generate a 12v 30Hz signal and convert the 12volt peaks to 5volts. That's the hard way. The easy way is to regulate 12Volt DC to 5V DC, and then generate a 30hz signal from the 5volt supply.
It would be easier to use a dedicated 5 volt regulator such as the LM7805 instead of the LM317.
Using the LM317 requires more parts to set the output voltage, whereas the LM7805 has a preset output voltage and only requires input and output filter capacitors to filter an AC ripple or the noisy 12v automotive supply and then buffer the output supply for a varying load. The LM317 output voltage is set with an R1 and R2 resistor, one of them should be a multi-turn trimmer resistor.
Either regulator will produce heat during its operation, varying based on the load and difference between the input supply voltage and the regulated output voltage. Attach the metal tab on a TO-220 type case device to something metal to dissipate the heat. The metal tab is internally connected to the {ground|earth|neutral|common ground} supply. Miniature versions of the LM705 devices can look like a small transistor and have no heat sink tab, and supply a tiny circuit like yours.
https://www.sparkfun.com/datasheets/Components/LM7805.pdf
You can then use an 7400LS series quad NAND gate (74LS00) or a CMOS quad NAND gate (74HC00) to make a clock circuit, with an RC (resistor capacitor) tank circuit to tune it to 30Hz. Keep the signal isolated from other signals like the spark plug wires, obviously.
see NAND gate RC controlled clock circuits here
https://www.homemade-circuits.com/simple-circuits-using-ic-7400-nand-gates/
Specifically this one
https://www.homemade-circuits.com/wp-content/uploads/2019/10/LOW-FREQUENCY-AUDIO-OSCILLATOR-circuit.png
The NAND device has 4 devices in one DIP case. You can buffer (strengthen the output signal by using the two remaining NAND devices in parallel.
Never leave TTL device inputs unconnected on your circuits, they can use power if they are in an electrically noisy environment, and receive Ghost inputs, and then amplify the signal when the resulting output signal changes.
Typically, boards with unused inputs are tied to a rail (+5v power, ground, Vcc Vdd Vcc etc) or pull up resistor to Vcc (+5v). Some designers intentionally use exposed cuttable traces for this so they can be cut and reporpoised for emergency uses such as inverting a signal. Never connect 74LS00 inputs or outputs to the distributor- Just sayin'.