“Friends” star David Schwimmer has signed on as Robert Kardashian in FX’s upcoming miniseries “American Crime Story: The People v. O.J. Simpson,” the network announced Friday.

Schwimmer will play O.J. Simpson’s attorney, starring opposite Cuba Gooding Jr. as Simpson. Sarah Paulson is set to portray prosecutor Marcia Clark.

The first episode of “The People v. O.J. Simpson” will be directed by “American Horror Story” creator Ryan Murphy. Scott Alexander and Larry Karaszewski will write the miniseries based on Jeffrey Toobin’s book “The Run of His Life: The People v. O.J. Simpson.”

Murphy, along with Nina Jacobson, Brad Simpson, Alexander, Karaszewski, Brad Falchuk and Dante Di Loreto are executive producers.

“American Crime Story” is produced by Fox 21 Television Studios and FX Productions. Production begins in Los Angeles in 2015.

Schwimmer is represented by Gersh and attorney Michael Gendler of Gendler & Kelly, APC.