NEW YORK (CBSNewYork) — Actor Paul Rudd surprised voters Thursday at the Barclays Center.

The movie star showed up to hand out cookies to people standing in line in the rain.

READ MORE: Gabby Petito Search: Authorities Combing Wyoming Wilderness For Missing Woman, Fiancé's Whereabouts Remain Unknown

READ MORE: Teen Stabbed To Death After Dutchess County High School Football Game, Former Student Charged

He thanked voters for “doing their part.”

The New Jersey native also took several photos with fans while wearing a mask and gloves.

MORE FROM CBS NEW YORK

MORE NEWS: Man Accused Of Stealing FDNY Coat, Radio From Bronx Fire Station

You can get the latest news, sports and weather on our brand new CBS New York app. Download here.