The Big Bang Theory stars put their talents on display for a good cause.

Jim Parsons, Johnny Galecki, Melissa Rauch, Kunal Nayyar, Kaley Cuoco, Simon Helberg and Mayim Bialik all hit the stage at the Beverly Hilton Hotel on Wednesday to put on a show for the 24th and final A Night at Sardi's event to benefit the Alzheimer's Association. "We'll always be together," Rauch captioned a cute pic of her co-stars.

WATCH: Kaley Cuoco Says She's Not Ready to Love Again, Worries Johnny Galecki Romance Rumors Will Hurt Her Ex

We'll always be together! 🎀🎼🎀 #nightatsardis @normancook @therealjimparsons @missmayim @kunalkarmanayyar @sanctionedjohnnygalecki #simonhelberg Photo cred: @richardweitzla

A photo posted by Melissa Rauch (@themelissarauch) on

Greased lightning with these chicks! @themelissarauch @missmayim #anightatsardis #alzheimersassociation

A photo posted by @normancook on

The cast happily got into costume to sing a few numbers from Grease, but Cuoco may have stolen the show with her scantily-clad performance.

Dressed in a red crop-top, fishnets and tiny black shorts, the 30-year-old actress reenacted the sexy song from A Chorus Line, "Dance 10 Looks 3," and she loved every minute of it. Cuoco Instagrammed: "#alzheimersassociation #anightatsardis right before my performance of 'Dance 10 Looks 3' aka (tits and a**) from A Chorus Line, nailed it!"

#bts #alzheimersassociation #anightatsardis right before my performance of Dance 10 Looks 3 aka (tits and ass) from A Chorus Line πŸ˜‚πŸ‘ŠπŸ½ nailed it!

A photo posted by @normancook on

The CBS star recently shared with ET her simple secret to having an insanely fit body. "Yoga is the secret," she stressed. "Yoga is the reason that I have been [looking great]. It has done everything, mentally and physically. I love it."

WATCH: Mayim Bialik and Johnny Galecki Recreate Their First On-Screen Kiss From Blossom Days

Cuoco quipped that working out also allows her to get her drink on. "I only go to yoga to drink wine, so I'm good," she joked. "I just throw the calories right back in."