Dick Gautier, a comic actor best known for his Tony-nominated performance as a vain rock ’n’ roll star in the Broadway musical “Bye Bye Birdie” and his recurring role as a robot with a heart on the television show “Get Smart,” died on Friday in Arcadia, Calif. He was 85.

A spokesman, Harlan Boll, said the cause was pneumonia.

Mr. Gautier had the square-jawed good looks of a leading man. But he also had a wild sense of humor — he began his career as a stand-up comedian — and for more than 50 years he was primarily a scene-stealing supporting player on sitcoms.

His television credits included the occasional drama like “Marcus Welby, M.D.” and “Murder, She Wrote,” but comedy was his specialty. He was seen on “The Mary Tyler Moore Show,” “Bewitched,” “Happy Days,” “Gidget,” “The Love Boat” and countless other comedy shows. He was also a frequent guest on game shows, sometimes with his second wife, the actress Barbara Stuart.

His only leading role of note was as a decidedly unheroic Robin Hood on the sitcom “When Things Were Rotten,” created by Mel Brooks, in 1975. Critics liked the show’s anarchic humor, but ratings were low and it was canceled after 13 episodes. (When Mr. Brooks revisited the Robin Hood legend in 1993 in the feature film “Robin Hood: Men in Tights,” the part was played by Cary Elwes.)