Your friend will score out to State prisión Time as a minimum and can get life.
Your best hope is to get him a criminal defense attorney immediately.
If this answer helped you, please be so kind as to mark it "helpful" or "best answer". This would be greatly appreciated. Remember, this is not legal advice from Criminal Defense Lawyer Albert Quirantes, or the Ticket Law Center in Miami, Florida and there is no attorney client privilege created in this communication. Don't squeal on yourself by making admissions on this public website. Only ask theoretical questions of a general nature for your own protection.
He is looking at life in prison and if the weapon was a firearm, he is looking at minimum mandatory prison. He needs to hire a criminal defense attorney who is experienced in defending violent felony offenses.