After Moriah Peters auditioned for “American Idol” during her senior year of high school, she walked away feeling discouraged. However, today she looks back and realizes that rejection has actually led to the best things in her life.

The now-24-year-old has said that the “Idol” judges once mocked her religious lifestyle, but now she looks back on the experience as a lesson.

Peters is now starring in her first movie, a faith-based film titled “Because of Gracia.” She plays a high schooler named Gracia who shares striking similarities with Peters in real life. In the film, Gracia is mocked for her good-girl image.

Related: Former ‘Bachelorette’ on Racy ‘Bachelor’: ‘That’s Not What Love Is

Peters told Fox News that the movie will strike a chord with viewers because of the characters in the film.

“… At one point I thought the director created [the] story based on my experiences that he had seen in interviews online because they are so similar, but I think that people will really find a connection to characters…” she said.

Peters was 16 when she stood in front of the “Idol” judges.

[lz_third_party align=center width=630 includes=https://youtu.be/Xd1zu_KPvZc]

“The thing I have come to realize about my ‘American Idol’ experience is that just like so many of the other things that we go through in life that are difficult, those are the moments that make us and lead us to all of the opportunities to get to find as we are older.”

Related: Director Fights Back Against PC Attacks on His Film

Who do you think would win the Presidency?

By completing the poll, you agree to receive emails from LifeZette, occasional offers from our partners and that you've read and agree to our privacy policy and legal statement.

Peters said the rejection brought a sense of gratitude.

“Now I have come to look back on that time with such gratitude, because had that opportunity not closed I wouldn’t have found all the incredible experiences I have been able to have years later. I think national recording, records and touring, meeting my husband eventually, and making this movie…all of that stemmed from that, what was once rejection, and now I can now see a redirection.”

“Because of Gracia” hits theaters September 15.

This article originally appeared in Fox News and is used with permission.

Read more at Fox News:
Carrie Underwood Shocks Nashville Predator Fans with Surprise Performance
Tomi Lahren Countersued by Glenn Beck, TheBlaze
‘Dancing with the Stars’: Donny Osmond Makes Triumphant Return to Show