This week, Courteney Cox's celebrity was cemented into the ground on the Hollywood Walk of Fame with the actress receiving her very own star. But things could have taken a drastic turn had she quit when her father told her that her time in Hollywood was up.

"My dad thought I should give up, really," Cox admitted on "Jimmy Kimmel Live!" on Tuesday.

"What happened was I hadn't worked in a long time and I only had enough money to live about two weeks, and really eat. That was it," she admitted of her days as a struggling actor.

"So I was talking to my dad and he was like…‘You need to come home… It's a long fall from Los Angeles to Birmingham and it's time to pack it in.'"

'FRIENDS' STAR COURTENEY COX DIDN'T THINK HOLLYWOOD SUCCESS WAS 'POSSIBILITY' GROWING UP IN ALABAMA

Courteney Cox tilts her head and half smiles while holding a Deadline microphone in a black top

Courteney Cox shared the alternate career path her father wanted her to pursue when she was struggling as an actress in Hollywood. (Kevin Winter/Getty Images for Deadline Hollywood)

Cox's late father was a pool salesman.

"You are a salesman. You're a damn good salesman, and you need to come home and do what you do best...sell swimming pools,'" Cox recalled her father telling her, while accepting her star on the Hollywood Walk of Fame earlier this week.

Admitting she knew the pool industry was a fallback, Cox was saved by her big break.

‘FRIENDS’ STAR COURTENEY COX SHOWS OFF FIT FIGURE AS A ‘GEN Z GIRL’

"I was like, ‘Dad…' and then the next day I got a call saying the audition I had gone on for ‘Family Ties,' I got the part as Michael J. Fox's girlfriend for the last two years," Cox said on Kimmel.

Cox starred as Lauren Miller in the sitcom from 1987 through 1989. She would later go on to star in "Friends" and the "Scream" franchise.

Michael J. Fox in a brown suit and tie sits on a chair as Alex P. Keaton in "Family Ties" alongside Courteney Cox who played his girlfriend Lauren Miller in a red top and black suit, speaking to Diana Bellamy as Dr. Eileen Davidson in a dark purple sweater

Courteney Cox says that when she landed the role of Lauren Miller in "Family Ties," she was literally afforded the opportunity to stay in Los Angeles. (NBC/NBCU Photo Bank)

CLICK HERE TO SIGN UP FOR THE ENTERTAINMENT NEWSLETTER

Cox shared to Kimmel that her father wasn't upset that she remained in California.

"He loved Hollywood. He loves movies, and he loves television."

Kimmel's wife Molly McNearney attended the ceremony on Hollywood Boulevard and heard Cox tell this story live, when something mysterious happened.

Jennifer Aniston and Lisa Kudrow in all-black outfits show up to support Courteney Cox who is receiving her Star on the Walk of Fame, also wearing black, holding her star plaque

Courteney Cox's "Friends" co-stars Jennifer Aniston and Lisa Kudrow showed up to support her at her Walk of Fame ceremony. (Gilbert Flores/Variety)

Kimmel aired the moment from the ceremony when Cox shared the anecdote and then thanked her sisters for flying into the city to celebrate.

"My mom would have loved this so much," Cox told the crowd, which was full of stars like Jennifer Aniston, Lisa Kudrow and Laura Dern, "but my Dad was obsessed with television."

Just as she mentioned her father, a flood of water broke through the seal of the tent covering the event.

Courteney Cox lies on the red carpet in an all-black outfit as she receives her star on the Hollywood Walk of Fame

Courteney Cox received her star on the Hollywood Walk of Fame on Monday. (Gilbert Flores/Variety)

"Wow! Sorry, Dad," Cox joked.

"If that isn't a message from the pool business above, I don't know what is," Kimmel told Cox back in the studio, to which Cox agreed.

Cox previously told Fox News Digital that "not in a million years" did she believe she would ever secure a star with her name. 

CLICK HERE TO GET THE FOX NEWS APP

"I'm from Birmingham, Alabama… That's just not something you think would be a possibility, but I did know that ‘Friends’ was special," she admitted.