2004 Foreman Rubicon Stuck in Limp Mode

I have had this issue for almost a year now, I originally had a code 4 and replaced the bad sensor. I still couldn’t get rid of the code until I replaced the ECM (which I found out was bad). I also replaced the regulator which fried the ECM. This is when the code 6 appeared. I replaced the angle sensor (which had no continuity) and tried to clear the code and do the setting procedure but it refuses to clear. I have had the wiring harness checked and it is still good. I am stuck with no options left. The quad is a 2004 Honda Foreman Rubicon 500 with the Hondamatic.