This December 2013 booking photo released by the Livermore Police Department show Andrew Nisbet. Nisbet, a popular Northern California golf coach, is facing dozens of child molestation charges that stem from allegedly sexual assaulting multiple boys during a three-year period. Nisbet, of Livermore, did not enter plea Tuesday, Dec. 10, 2013, in Alameda County Superior Court, after he was charged with 65 felonies, including lewd acts with a child and oral copulation of a child. (AP Photo/ Livermore Police Dept.)

A California youth golf instructor pleaded guilty on Thursday to charges that he sexually molested children and then tried to a hire a hit man to have his victims killed.

Andrew Michael Nisbet, 32, had been facing 75 felony counts for allegedly molesting boys between the ages of 12 and 17 who were his students, according to CBS San Francisco.

While in jail last year, he allegedly tried to hire a hit man to kill the children making the accusations.

Police say Nisbet wrote letters from behind bars saying he wanted to have two victims "taken care of," according to the San Francisco Chronicle.

“From my training and experience that means he is asking to have the victims killed,” Alameda County District Attorney Inspector Jeff McCort said in a probable cause statement cited by CBS.

An undercover agent working for the district attorney visited Nisbet in jail and recorded a meeting in which the suspect provided information about the kids he wanted slain. The Oakland Tribune says Nisbet wanted the killings to look like robberies gone wrong.

On Thursday, Nisbet pleaded guilty to three counts of child molestation, three counts of solicitation of murder and one count of possession of child pornography, the Chronicle reported.

As part of a plea deal, 79 other charges -- enough to put him in jail for life -- were dismissed, the Tribune said. Instead, he'll be sentenced next month to 27 years and four months in prison and waive credit for time served. He'll also have to register as a sex offender for the rest of his life.