Hello Ashton,
As with all ‘modern’ cars, a good serviceable battery is a must, so if you have suspicions that it is passed it’s best, then I would suggest getting it tested, and replaced with a good quality (min. 4 year warranty) one if found to be below par. Never buy batteries on the basis of cheapest will do.
Will a new battery completely solve your roof issue? Unlikely, but you have to start with the basics, and supplemented with a little carefully (in caps) applied lubrication at all movement points, you may, just may find the problem has been resolved.
If it turns out it hasn’t, then at least you will have eliminated the basics.
Kind regards,
Gareth.