spark and lights are wholly separate on tomos. some bikes theres weird minor overlaps, but not tomos. lights functioning has zero bearing on the spark.
it could still be the start, it'd just be the stator ignition coil, not the lights coil - again totally separate.
check if theres power on the ignition (black) wire outta the motor. if so your stator bits are probly fine. Then check wiring - disconnect all the kill switch etc, just black dir4ectly from engine to CDI to bypass any switches or possible electrical faults. check that the ground is grounded. still nada, check your plug wire, boot, plug etc (sounds like you've at least gone partway down that path) then the only thing left is the CDI itself. but my 1st guess is it's something simple. wiring or missed connections