"When people watch Britney's second appearance on the show they'll see that the door is still open for her to come back," he told the Hollywood Reporter.
"She was better than the first time and I think the fans will enjoy it because her return answers a larger mystery set up earlier in the series," he said. "So there's a good plot reason why she's there."
Watch a preview of Spears' second appearance on the CBS sitcom – which airs tonight – here.
Don't miss Spears' recent on-set stints here.
Tell Us: Should Britney have a recurring role on HIMYM?



Jessica and Ashlee Simpson
Hilary and Haylie Duff
Britney and Jamie Lynn Spears
Lindsay and Ali Lohan