<human>: I'll start...

So my dad was trying to get custody of me from my mom, and so he took my mom to court. I went back to the judges chambers, and on my way there, I had to go though the courtroom. When I did I saw my mom, and my dad sitting at different tables. I also saw a TV sitting in the middle of the floor, right in front of them, which was turned of at the time. I went on back to the chambers and he told me there was a video camera in the corner of his which I could see. There was also a TV next to me, but the TV show a picture of me. So the judge asked why I wanted to live at my dads, and what I didn't like about my mom, and basically he wanted to know was "How bad was my mom a parent to me." I told the truth.

So I said EVERYTHING I could think of to say bad about my mom so that I could live at my Dad's. I talked for about 45 minutes and came out and had to walk through the courtroom again. I saw my mom bawling her eyes. I didn't really know why, until I walked past the TV and it was playing EVERYTHING I had said. I didn't know the camera in chambers was recorded and sent to the courtroom TV. If I knew that, I wouldn't have said all those things. I felt awful for a long time. It all worked out in the end where I got to live with my dad, and I still see my mom, I just wish I wouldn't have been so harsh in the chambers

Can you summarize the given text in a few sentences?
<bot>: Dad took mom to court to get custody of me, said harsh things about mom, didn't know she could hear it all, she could hear it all, saw her crying, made me feel awful. All worked out in end.