Lopez, who turned 50 on July 24, gave some inspiration to anyone who might feel like their age is holding them back