Bob Odenkirk joined Sarah Silverman and a slew of other comedians Wednesday at The Alliance for Children’s Rights’ 6th annual Right to Laugh at The Avalon in Hollywood to raise money to provide free legal services and advocacy to ensure children have safe, stable homes, healthcare and education.

Odenkirk and Silverman were joined by comedians Natasha Leggero, Kumail Nanjiani, Paul Scheer, Steve Trevino and Rory Scovel.

“Silicon Valley’s” Nanjiani told the audience how supportive his own parents are of his choice not to enter medical school. After his first hour-long special aired last year, his dad sent him a text message.

“As soon as the credits are rolling — just finished my first special — I get a text from my dad, and I will read you the entirety of the text that my dad sent me: ‘Saw your program.’ That’s the whole text. No period at the end.”

Odenkirk said he was honored to be able to lend his talents to helping children in the foster care system.

“I get to make a living acting and writing comedy, so I don’t really think I’m helping the world too much, I’m helping myself and having fun, so being able to do something to help other people and contribute to their good work is a gift and an honor to do.”

Scheer, who currently stars in “The League” and “Fresh Off the Boat,” questioned two lawyers who work with adoptions in the audience about vetting potential new parents before matching them with children.

“You never do that?” Scheer asked, amazed. “So you put kids with crap parents? You’ll be like, ‘Look at this dad who’s tucking in his polo shirt into his shorts?’ You can’t do that. That kid’s better off in a facility than with a dad with a polo shirt tucked into his shorts.”

Silverman said sometimes she has trouble putting things into perspective.

“Even in the same breath, I’ll look and go, ‘F—-n’ people, you petty, small-minded, materialistic, with your f—-n’ thousand-dollar purses, do you get we are breathing egos acting like we aren’t a speck of dust on a speck of dust on a speck of dust hurling through outer space? We don’t matter. We’re nothing.’”

“And then in the same moment, I’ll be like, ‘but I want my face on money.’”

The event raised $300,000 for The Alliance for Children’s Rights.