A Tennessee teen was shot in the head in a social media challenge gone wrong, police said.

The 17-year-old boy in Memphis was allegedly playing the “No Lackin Challenge” — a viral video craze on YouTube where people record themselves pulling guns on each other, news station WMC-TV reported.

In the challenge, no one is supposed to pull the trigger, but the teen’s friend, 21-year-old Sherman Lackland, accidentally fired his .40-caliber handgun, according to the Commercial Appeal.

The pair was sitting in a booth at E’s Cafe in Memphis with other friends when the incident occurred.

“[There was] a real loud bang, then I see the guy across from [Lackland] fall in the floor,” witness Thomas Fitzpatrick told WMC-TV.

The victim was rushed to the hospital in critical condition.

Lackland was arrested on charges of aggravated assault, reckless endangerment and unlawful possession of a weapon.