Some of the early Melex were kind of Polish EZGO clones. The Briggs engine probably wasn't original, but who cares if it runs. You might poke around the EZGO Gas Tech stickys and see if your wiring is anything close.
https://buggiesgonewild.com/showthread.php?t=1902
FYI some of the links have expired