A former "Power Rangers" TV actor has pleaded guilty to killing his roommate, who was stabbed to death with a sword.

Thirty-eight-year-old Ricardo Medina entered a plea Thursday in Los Angeles County Superior Court to voluntary manslaughter with the use of a sword. He faces six years in state prison.

In this September 28, 2005, file photo, Ricardo Medina arrives at the Lambda Legal Liberty Awards, in The Egyptian Theater, Los Angeles, California.(Shutterstock/File)

Read also: Kosmik presents superhero 'idols' in new venture

Prosecutors say Medina stabbed Joshua Sutter several times in the abdomen two years ago at their house in Green Valley, a mountain town north of Los Angeles.

The two had argued over Medina's girlfriend.

Medina played the Red Lion Wild Force Ranger on "Power Rangers Wild Force" in 2002. He was the voice of Deker on "Power Rangers Samurai" in 2011 and 2012.