Lloyd’s agent confirmed his death to Deadline.
The actor was diagnosed last year with an inoperable brain tumor, which subsequently was revealed to be metastatic lung cancer, which had spread to his liver, spine and jawbone. His diagnosis came just weeks after his wife Vanessa gave birth to their first child.
A graduate of Syracuse University, Lloyd was the nephew of Back to the Future star Christopher Lloyd, and his father, Sam Lloyd III, was also an actor.
He and his uncle both guest-starred on Malcolm in the Middle, Sam Lloyd as a housing lawyer and Christopher Lloyd as Hal’s father. The two also guested on The West Wing, and Lloyd also appeared in Desperate Housewives.
Lloyd appeared in dozens of roles in TV and film, but it was his portrayal of the sweaty, put-upon attorney Ted Buckland on Scrubs for which he was best known. He appeared in 95 episodes during its nine-season run on NBC and ABC. His last appearance on the show was the Season 9 episode “Our Histories,” which saw Ted leaving New Sacred Heart. Lloyd later reprised the role on a Season 3 episode of Cougar Town. The a cappella group The Blanks, of which Lloyd was a member, also appeared in the episode, portraying The Worthless Peons, the Sacred Heart barbershop quartet. The group also made many appearances on Scrubs. In addition to being an accomplished singer, Lloyd also played the bass guitar in The Beatles tribute group The Butties.
He also had a memorable turn in “The Cigar Store Indian” episode of Seinfeld in 1993, playing a TV-obsessed schlub who falls for Elaine and turns a TV Guide owned by George’s father into a paper bouquet for her. On The West Wing, he guested as a citizen who gets a meeting with Sam to discuss his concerns about UFOs in the Season 1 episode “The Crackpots and Those Women.”
Scrubs creator Bill Lawrence remembered Lloyd on Twitter: “Thinking a lot about Sam Lloyd today. (Ted). Truly such a kind, sweet guy. He will be missed by so many.
Lloyd’s recent TV credits include Shameless, Marry Me, Dr. Ken, Modern Family, Alex Inc. and Happy Together. His last TV appearance was in November with a guest role on American Housewife.
Scrubs star Zach Braff also paid tribute to Lloyd on Twitter: “Rest In Peace to one of the funniest actors I’ve ever had the joy of working with. Sam Lloyd made me crack up and break character every single time we did a scene together. He could not have been a kinder man. I will forever cherish the time I had with you, Sammy.”
Erik Pedersen contributed to this report.