I built a wooden rig like a close line, just using scrap and extra 2x4s. My ceiling was in a finished attic type space, and the drywall there had nothing behind it except in the very corners. I build the support, there are wide legs at the bottom obviously, and the attached my light rail to that. I would just use hooks or eyes to the studs if I had the option though.
View attachment 5311505
Edit: This was one of my first indoor grow spaces, don’t judge to harshly, I was just showing a possibility not a work of art or anything.