Be careful when pranking your friends — lest you get trapped in the head of a big, purple dinosaur.

Darby Risner, 15, was at a slumber party on Sunday at her church in Trussville, Alabama, when she decided to pull a lighthearted prank.

She donned the head of Barney the dinosaur, which her pastor had bought as part of a costume several years ago at a local sale.

Intending to scare her friends, Darby waited with the prop at the foot of a staircase. Unfortunately, the gigantic head slipped over her shoulders and wouldn't come off.

After some failed, Vaseline-assisted attempts to set Darby free, her pals were forced to visit their local fire department.

@loganrisner1919 "took a long time to get these things big" pic.twitter.com/JOMZ6ESVHW — Logan Risner (@loganrisner1919) June 21, 2016

"When they walked in, you couldn't help but start laughing,'' Trussville Fire Lt. Vince Bruno told AL.com. "We tried to be professional, and she was a little distraught, but we had to giggle about it."

Darby got stuck in a Barney head pic.twitter.com/oTkoDEsiay — Logan Risner (@loganrisner1919) June 21, 2016

Firefighters eventually made several cuts in the back of the head, and, with the added wiggle room, were able to free Darby.

According to local reports, Darby is now doing quite well, considering the circumstances. "I have laughed about it," she said.

Have something to add to this story? Share it in the comments.