From what I can see, it looks as if you have a later (1980 on) red-yellow stator with an earlier (1979 and before) double-yellow wiring harness. I can also see an external 12v AC regulator (little square box with yellow and black wires coming out of it) in the first picture hooked in parallel with your head light circuit (purple).
The head light coil on the later stator, purple (or gray in your case) wire, is stronger than the earlier ones. It sends current through a different regulator/rectifier (5-post) and caps the juice going to the headlamp so it won't burn out, hence the added 12VAC regulator on your system. Earlier regulator/rectifier, which you probably have (4-post) did not have the head lamp regulator circuit. The earlier stator sent juice straight to the head light unregulated, but was a tad dimmer.
The correct hookup should be yellow stator to yellow harness, red stator to yellow harness, (doesn't matter which yellow or red from the stator), purple stator to purple harness (with the yellow from the little square regulator spliced in). I can't seem to see a purple from your stator... might be faded or replaced to the gray colored wire. The yellow wire with the eye coming off of the blue CDI box goes to ground. There
are a lot of yellow wires in your system!
Some wiring diagrams below.
Hope this helps.
http://scooterhelp.com/electrics/wiring/VSX1T.USA.after.pdf
http://scooterhelp.com/electrics/wiring/VSX1T.USA.before.pdf
http://www.vespamaintenance.com/elec/charger/index.html
⚠️ Last edited by poidog on UTC; edited 2 times