If it has good compression, good carb, and the valves are seating correctly then it sounds electrical.
Other than the miscellaneous options, like a bad ground, bad connection, or a bad wire somewhere, there really is only a few things it could be.
Ignition coil, pickup coil, cdi, and some stators have an exciter coil?
|