For Jennifer Aniston, "Friends" happened at just the right time.

The actress starred in the hit sitcom for 10 seasons, from 1994 to 2004 along with Courteney Cox, Lisa Kudrow, David Schwimmer, Matthew Perry and Matt LeBlanc. She admitted in a new interview that she's glad the show was filmed when it was, because the cast didn't have to deal with any criticism on social media.

"It was in the ’90s and 2000s, and we had a luxury of there not being social media or the internet, so we were so isolated and protected," she explained in a conversation with "Abbott Elementary" creator Quinta Brunson for Variety.

JENNIFER ANISTON IN THE SPOTLIGHT: FROM ‘FRIENDS’ TO HOLLYWOOD ICON, EXPLORE HER JOURNEY TO STARDOM

A split image of Jennifer Aniston now and the cast of "Friends"

Jennifer Aniston says she and her "Friends" co-stars had the "luxury" of no social media when filming the show. (Getty Images)

A photo of the cast of "Friends"

"Friends" premiered in 1994. (Jon Ragel/NBCU Photo Bank/NBCUniversal)

She continued, "You weren’t faced with what people are commenting and ripping you apart or whatever. It was really an innocent time, where we could roam about the world a lot easier."

"But again, there weren’t phones. It’s not like hundreds of screens telling you what it is."

Brunson, who also writes, produces and stars in "Abbott Elementary," said she was envious that Aniston had that experience. She also said that she implemented a strict "no social media" policy during the first season of her sitcom so no one working on the show would be influenced by what other people were saying about it online.

"That’s a beautiful boundary," Aniston told her. "Because otherwise you’ll lose your original creation."

LIKE WHAT YOU’RE READING? CLICK HERE FOR MORE ENTERTAINMENT NEWS

Jennifer Aniston wearing a light blue and white dress with the Rachel haircut

Jennifer Aniston played the role of Rachel Green. (Getty Images)

Cast of "Friends" sitting in front of fountain

The cast members of "Friends" have remained close over the years. (NBC)

The star also spoke about the 30th anniversary of "Friends" – the first episode aired in September 1994.

"It’s so strange to even think that it’s 30 years old," she said. "Because I remember the day that it was going to premiere on television, on NBC: Matthew Perry and I were having lunch somewhere, and we knew Lisa was getting her hair colored. So we ran into the hair salon, and I snuck up – she was in the sink – and I took the nozzle from the guy that was supposed to be doing it and just started washing her hair. It definitely flew out of control, and that was unfortunate. But the excitement we had, it feels like yesterday."

CLICK HERE TO SIGN UP FOR THE ENTERTAINMENT NEWSLETTER

Jennifer Aniston in a black dress soft smiles on stage

Jennifer Aniston often speaks with her former "Friends" co-stars. (Penske Media via Getty Images)

Cast of "Friends" drinking milkshakes.

The cast rallied together after Matthew Perry, left, passed away last year. (NBCU Photo Bank/NBCUniversal via Getty Images)

Despite two decades passing since the group last did the show, it's still incredibly popular, and while Aniston has had a remarkably successful career in film and television in the years since "Friends" ended, she still acknowledges how important its fans have been to her.

CLICK HERE TO GET THE FOX NEWS APP

"The fact that it’s had this long, wonderful life and it still means a lot to people is one of the greatest gifts I think all five of us – all six of us – we never could imagine," she told Brunson. "And we see each other. I talked on FaceTime with Court last night for an hour, and Lisa and the boys, and we just have a really – it’s a family forever."