AITA for not taking care of my Mom after turning 18?

I (18m) turned 18 about six or seven months ago. I'd been saving up money since I was fourteen to move out and had made it very clear that I was not staying after I was of legal age.

For most of my life- around 7 years and on- my Mom went into a deep depressive episode. As she was a single mother and I was an only child, I ended up being neglected. My family would not come to help her take care of me and I grew up alone. In my teen years, she started using hard drugs such as cocaine and heorin. The police were constantly at our door and many people came around demanding money from her constantly- my childhood was basically a game of making sure I wasn't going to get shot. She overdosed multiple times in or around me. One time when I was thirteen she overdosed and I had to call the ambulance as her pulse had stopped.

I turned 18 and moved out as I had said, though she had begged me to not do so, to stay and take care of her. I refused, saying she was an adult and could take care of herself. She insisted- saying that without me there, she would end up doing something harmful to herself. I ignored it, as often in my childhood she would threaten her own life to get me to feel sympathy for her.

She died of an overdose a month ago. My family (grandmother, grandfather, uncle) was livid at me, as she had texted many of them saying I had left her + exaggerating the argument we had. She told them I said I did not care for her and I wanted to see her die, which was not true. A funeral has been scheduled and I refused to come, even though I do feel guilty for her death. I still feel as though it isn't my responsibility to care for her, but my family insists her death was my fault.