Actually Obito is a good guy, he's just wanting to recreate things with a moon.
But with Madara's help, he urged the demise of Uchiha clan, destroyed Konoha with the Kyuubi, started a war, and some other unnecessary things all for a thirteen year old girl.
And he plans to restore everything and everyone with the eye of the moon plan. So it still makes him a good guy, just the worse good guy ever who had to make massive sacrifices. or he's just more troubled than Sasuke. Though the plan will fail unless after they extract Kurama and Gyuki, they kill Naruto