All but one of the five charged in connection to the “Friends” star’s death in October 2023 have agreed to plead guilty.

A doctor charged in connection with Matthew Perry’s death has agreed to plead guilty to multiple drug charges, according to court documents filed Monday.

Salvador Plasencia, known as Dr. P., was one of the five people charged in August 2024 after an investigation into the actor’s death. Plasencia faces a maximum sentence of up to 40 years in prison on four counts of distribution of ketamine, according to the filing.