Watch Luke Perry’s Cameo on ‘The Simpsons’ as Krusty the Clown’s ‘Worthless Half-Brother’ (Video)

The former “Beverly Hills, 90210” and “Riverdale” star, who died Monday at age 52, appeared in a 1993 episdode

Back during the height of his popularity on the Fox primetime hit “Beverly Hills, 90210,” Luke Perry made a guest appearance on another show on the network, “The Simpsons” — as Krusty the Clown’s “worthless half-brother.”

In the 1993 episode, “Krusty Gets Kancelled,” Bart and Lisa try to help Krusty after his show gets the ax — and reach out to some of his celebrity pals, including Bette Midler and Perry, to host a telethon to revive the clown’s career.

Appearing shirtless as “Sideshow Luke Perry,” the young star manages to upstage Krusty’s balloon animal with an elaborate “19th-century carousel.”

And Krusty, who has described Perry as “worthless” earlier in the episode (watch the clip below), imagines getting revenge by shooting Perry into a brick wall and mangling his good looks.

Perry died Monday at age 52 after suffering a massive stroke last week.

Perry, who was starring on The CW teen drama “Riverdale” as the father of lead character Archie (K.J. Apa), is best known for playing the brooding Dylan McKay on Fox’s ’90s teen drama “Beverly Hills, 90210” from 1990 to 1995 and again from 1998 to 2000.

His other notable small-screen credits include HBO prison drama “Oz,” the titular role on Showtime’s post-apocalyptic series “Jeremiah” and NBC’s short-lived ensemble drama “Windfall,” about a group of friends who win the lottery. He also had roles in “Body of Proof” and “John from Cincinnati.”

Watch his vocal cameo on the season 4 episode of “The Simpsons” above.