Pharrell Williams

Pharrell Williams performs at To the Rescue! Los Angeles Human Society Benefit at Paramount Pictures Studios on April 22, 2017 in Los Angeles. 

Richard Shotwell/Invision/AP

Warner Bros is adapting the YA book by Danielle Vega.

Pharrell Williams is teaming up with Tracy Oliver, the writer behind the hit Girls Trip, to tackle an adaptation of the YA book Survive the Night.

Warner Bros. just picked up the package, which will see Oliver write the script and direct the music-themed horror thriller.

Williams will produce with Mimi Valdes, his partner at I Am Other Entertainment. Also producing are Leslie Morgenstein and Elysa Dutton of Alloy Entertainment, the book packager and production outfit.

The story follows a group of female college students trapped inside an underground warehouse music festival on Halloween. They must fight for their lives against a mysterious attacker who hunts them down throughout the night.

Independent film producer Jon Alston will work with Oliver on the design and the look for the film and act as a consultant on the project. Niija Kukendall will oversee for the studio.‚Äč

Oliver and the producers see the project as a grounded empowerment story about four female friends. Music will be a large component to the story.

Williams, Valdes and Oliver previously collaborated on Awkward Black Girl, a YouTube web series that starred Issa Rae. Williams and Valdes were part of the crew that produced Hidden Figures, the hit drama that told the true story of four black women who were important to NASA's programs in the 1960s. They also were involved in the Sundance fave Dope.

Oliver isn't coming into the director's seat cold, as she wrote and directed a short film that accompanied R&B artist Jhene Aiko's latest album, Trip.

Oliver is rewriting Rapper's Delight for producer Stephanie Allain and is also adapting Nicola Yoon's YA novel The Sun Is Also a Star for Alloy and Warners. Oliver's female empowerment hit comedy Girls Trip grossed over $115 million domestically. She is repped by ICM Partners, Principato Young and Myman Greenspan.

This article originally appeared on The Hollywood Reporter.