Alyson Hanniganreceived some sweet advice from formerDancing with the StarscompetitorSelma Blair.

On Tuesday’s episode of the ABC dance competition, Hannigan’s partnerSasha Farberinvited Blair — who he was partnered with on season 31 before shedropped outdue to complications from multiple sclerosis — to their rehearsals ahead oftheir performanceto “Be Our Guest” fromBeauty and the Beast.

“Having Selma come visit us was such an honor. She’s such an inspiration,” theHow I Met Your Motheralum, 49, alum exclusively tells PEOPLE. “I love her so much. I haven’t seen her in years, so it was so nice to have her there… Everybody was so excited to see her. Even the dog, her dog was super excited to be back. It was just like… You can tell what a family they are.”

Sasha Farber and Alyson Hannigan on ‘Dancing with the Stars’.Eric McCandless/Disney via Getty

SASHA FARBER, ALYSON HANNIGAN DANCING WITH THE STARS

Eric McCandless/Disney via Getty

“She’s just so beautiful in everything she does, and she gave me some good, helpful advice, like to breathe,” she adds. “So, I was standing up there, ‘Okay, I’m breathing for you, Selma,’ and just to have somebody who’s been exactly where I am, it’s just great.”

Farber, 39, was also excited to have theCruel Intentionsstar return for a visit, sharing, “It was amazing to have her back in the actual building and just her energy is so beautiful and it was great to see her in the studio.”

He adds: “She watched the dance, she loved it, and she gave some really positive feedback.”

VALERIE MACON/AFP via Getty; Slaven Vlasic/Getty

Alyson Hannigan Reveals the Advice She Received from Selma Blair Before Her DWTS Performance

During their pre-performance package, Blair, 51, appeared equally thrilled to be back, sharing, “I cannot stop smiling being back here in theDancing with the Starsstudio.”

“Alyson’s spirit is so big. She’s such a pro. I mean, I think this is her time,” she added.

After the performance, judgeCarrie Ann Inabapraised Hannigan for being “so animated” but noted she sometimes can “lose the musicality” because of it. She added, “Some of the movements felt a little limited.”

Derek Houghsaid it “lacked a little bit of content” but theBuffyalum made up for it with her personality and charm.Bruno Tonioliechoed their sentiments, urging her to “put the steps exactly to music.”

Back in October 2022, Blair — who wasdiagnosed with multiple sclerosisin 2018 — announced her decision to bow out ofDWTSto take care of her body.

“You know I’ve been monitored and in touch with my doctors this whole process,” she said at the time. “I had these MRIs and when the results came back, it just all adds up to I can’t. I can’t. I can’t go on with the competition. I pushed as far as I could.”

Selma Blair and Sasha Farber on ‘Dancing with the Stars’.ABC/Christopher Willard

DANCING WITH THE STARS - “Elvis Night” SELMA BLAIR, SASHA FARBER

“With a chronic illness, you do have special considerations and my body is definitely taking a hit,” she added. “It’s way too much for the safety of my bones. There’s just intensive bone trauma and inflammation among rips and tears so I could do extensive damage that of course, I do not want.”

Never miss a story — sign up forPEOPLE’s free daily newsletterto stay up-to-date on the best of what PEOPLE has to offer, from celebrity news to compelling human interest stories.

Dancing with the Starsairs Tuesdays at 8 p.m. ET on ABC and Disney+.

source: people.com