Follow CBSMIAMI.COM: Facebook | Twitter

MIAMI (CBSMiami) – Surveillance cameras captured the ambush of rapper XXXTentacion as he prepared to leave a Deerfield Beach motorsports dealership last June.

READ MORE: Xavier Johnson Charged In Abduction, Murder Of Andreae Lloyd

The cameras show a vehicle blocked the rapper’s exit around 3:55 p.m. on June 18. As XXXTentacion stops his car, two men jumped out of the vehicle — one with some sort of assault rifle — and confront the artist, while a person in the rapper’s car fled. Investigators say the men threatened and robbed the XXXTentacion, as video shows the men in some sort of struggle with him.

On the video, as one of the men points a large gun into the driver’s side window, another man went into XXXTentacion’s car. Then shots rang out and the men fled with a bag from the rapper’s car.

That is the end of the surveillance video. But earlier, cameras recorded the rapper’s arrival for the final moments of his life.

At 3:30 pm on June 18 XXXtentacion arrived at the dealership. As he and a friend walked in XXX had a bag in his left hand. One minute later, surveillance video showed the suspect’s car arriving and two of the suspects walked in the store. They walked past XXX who looked at them briefly before continuing his conversation with a store employee.

READ MORE: Western High Students Attend Virtual Classes Thursday After School Power Outage

Surveillance video showed the suspects walked to the back of the store and got on their cell phones. Less than 30 minutes later, as XXXTentacion left the store and drove off, he would be shot.

A total of 4 men face charges in the murder — Michael Boatwright, Trayvon Newsome, Dedrick Williams, and Robert Allen.

Allen appeared in court this week asking to have his bond reduced. His attorney, Jim Lewis, said Allen never left the vehicle to take part in the robbery…

“He was at the wrong place at the wrong time with the wrong people,” Lewis said. “It’s always been my client’s position is he didn’t know this was going to be a robbery, he didn’t participate in it. He didn’t share any of the fruits of it.”

But prosecutors and investigators accuse Allen of playing a role in the murder — from being linked to the rental car to communicating with people outside the store before the murder. Ultimately, a judge denied Allen’s request to reduce his bond.

MORE NEWS: Judge Denies Request To Take Death Penalty Off The Table In Case Against Parkland Shooter Nikolas Cruz

Each of the suspects in this case is charged with premeditated murder and each of them is locked up in the Broward County Main Jail.