Getting AlignOrientation to Point at the Sun

I want a solar panel to always point at the sun within a certain time frame. I have majority of that down, HOWEVER, it doesn’t appear to be aware of the orientation of the base of the solar panel.


That’s if the orientation of the base is just 0,0,0.

If the orientation is something different, it doesn’t realize and just keeps assuming the orientation is 0,0,0.


Screenshot of the solar panel being oriented away from the sun, but the attachment not adjusting for said readjustment.

I don’t know how to fix this at all. It just doesn’t make sense in my head or something isn’t clicking.
The code that re-orients the attachment:


I use an attachment so that I can use AlignPosition and AlignOrientation
The hierarchy:
image
The second attachment is there for a proximity prompt that is completely unrelated, the handle is the primary part. The solar panel is unanchored and can be moved around. The RotatePart is a small cylinder under the big panel part of it, should be visible.
Any idea on how to fix this? I’m at a loss, I would think the GetSunDirection() would be all to get it pointing but clearly I was mistaken.