All perfect praise be to Allah, the Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad, sallallaahu ʻalayhi wa sallam, is His slave and Messenger.
First of all, we advise you to beware of Waswaas (obsessive doubts/devilish whisperings) about Kufr (disbelief) and apostasy and of getting carried away with it and asking many questions about it. This opens the door to grave evils.
Kufr is not a slight matter, and no one is to be accused of it for the slightest reason, as apostasy from Islam has many consequences in this life and in the afterlife, including separating the apostate from his Muslim wife, killing him if he does not repent to Allah (from apostasy), not holding a funeral prayer for him when he dies, nor shrouding him or burying him in Muslim cemeteries, in additin to the fact that he would eternally abide in Hellfire.
A Muslim is not to be accused of Kufr merely for laughing at the mentioned scene or partaking in the acting; however, this is prohibited. It is incumbent on the Muslim to avoid the places where sins are committed and keenly stay away from them, let alone partake in them. Allah, the Exalted, says (what means): {And when you see those who engage in (offensive) discourse concerning Our verses, then turn away from them until they enter into another conversion. And if Satan should cause you to forget, then do not remain after the reminder with the wrongdoing people.} [Quran 6:68]
Allah knows best.