Oh - wow - I have made my share of mistakes, said things and done things I regretted but all in all I think my son has a good moral compass.
We all make mistakes - I just make sure that I can acknowledge them and my son and I can talk about them. I may not apologize for all of them - I am still the parent and can still pull the "I can do no wrong" card, but as he has gotten older it is easier to discuss bad decisions that I have made, especially, as an example of what not to do. And he is old enough now to call me out when I snarl at him because I am mad over something else or if I do something "wrong". That opens a discussion on right and wrong and how to behave.
A lot of times he will do things, or make decisions, that are "wrong" and when questioned he knows the correct way to behave....but he has to test those limits and learn the consequences. He knows how to make healthy food choices, but since he is 14, often does not. He knows how to treat people with respect and compassion, but does not always. Again, it is a learning process and he is beginning to see the negative effects of his poor behavior on others and is finally of an age to understand the damage his poor choices can have on himself and others.
I also try to "lead by example". If I tell him to do something it is something I am able to do and have done. I do not send him to church, I go with him so he can see my faith. I do not tell him to volunteer, I take him with me to volunteer. I do not tell him to eat healthy, I have him help me prepare healthy meals. I do not teach him fiscal responsibility, I discuss our household budget and let him know how much money we have and what bills we have to pay.
Oh, but I long for the days, sometimes, when I could bribe him with a Dum Dum !!!!!!