How to write a moral story with amazing characters when I'm not like that?

How can I preach morals in a story when I might not always be able to keep to those morals/ how do I write a story about people that are extraordinarily brave and good when im not.
(maybe some writers can do it because they don't feel like a hypocrite spiritually--which is fine we all have different faiths)
6 answers 6