help head light wont work

lost the flywheel key screw fell out of one of the magnets...
found a mint flywheel and stator, new key, and a new gasket for tranny from a guy. everything works great now headlight aswell.