An Independence man will spend eight years in state prison after he was sentenced Thursday for his role in last year's fatal shooting of a 17-year-old in the Independence Center parking lot.

Luis Ramirez, 18, pleaded guilty last month to attempted robbery and armed criminal action in connection with the fatal shooting of Matthew Haylock on Jan. 2, 2018. A Jackson County judge sentenced Ramirez to eight years in state prison for attempted robbery and three years for armed criminal action – to run concurrently and with credit for time served.

Earlier this month, a Jackson County jury convicted Ramirez's co-defendant, 19-year-old Tyler Gates, of second-degree murder and armed criminal action and recommended sentences of 20 and seven years, respectively. Circuit Judge Jack Grate, who sentenced Ramirez, is scheduled to sentence Gates on Aug. 14. Ramirez initially faced the same charges as Gates.

According to court documents, Gates and Ramirez decided to rob Haylock of a Glock 9mm handgun he had shown them during a FaceTime conversation a few days earlier, but then Ramirez tried to back out of it.

On the day of the murder, Gates and Ramirez drove to Haylock's home and picked him up, and three went toward the mall. Gates, who was driving, asked Haylock to see his gun, then refused to give it back and pointed it at Haylock.

Ramirez told Gates not to rob his friend, but then as he was walking behind the vehicle he heard one gunshot and saw Haylock slumped over. Ramirez said he refused to help Gates push Haylock's body out of the car, then refused to drive away with him and said he was calling 911.

Gates drove off, and police later found the car in a residential area a couple of miles from the shooting, with a red substance presumed to be blood in the rear passenger seat and two handguns in the front. Ramirez later told police he and Gates had obtained a Glock 26 about 1 a.m. that day from an unknown source. It was for protection after their house had been shot at the day before. He told police he did not know the gun had been reported stolen out of St. Joseph.

A member of Gates' family told police Gates had been in a “frantic state” and asked her to pick him up, which she did shortly before 9 p.m. Gates then said he had gotten into an altercation and said “I shot him ...” At that point, a television news report of the shooting came on, and when Gates saw it he said he had “(messed) up his life.”

The family member then said Gates told her he and two others had gone to the shopping center to “squash everything” regarding his house being shot at. He told her an unknown person had gotten into the car and tried to strike Gates on the head with a pistol, and Gates shot the person and pushed him out of the vehicle.