Onfroy was reportedly leaving a motorcycle dealership in Deerfield Beach on June 18, 2018, when he was shot by two assailants in a dark colored SUV in an apparent robbery. Witnesses told police the suspects took a Louis Vuitton bag from Onfroy’s vehicle. The suspects fled the scene. The Broward County Fire Department rushed Onfroy to Broward Health North. Initially reported to be in critical condition following the shooting, the Broward County Sheriff's Office later confirmed Onfroy's death.

Upon his death, many artists expressed their condolences, including Kanye West and Big Sean.

RIP, X, you truly were a great rapper, and from what I saw, a cool dude.