Help with CFrame.LookAt for AlignOrientation Constraint

At the moment I have the code:

	AlignOrientation.CFrame = CFrame.lookAt(goalCFrame.Position, goalCFrame.Position + goalCFrame.LookVector * Vector3.new(1, 0, 1))

to make a part point towards a position, but not move on the Y axis. If I wanted to offset the Y axis to make it angle down by 15 degrees for example, or any other amount, how would I do this? I really am not very good at CFrames. As usual any help would be appreciated :slight_smile:

Can anyone help with this please?

I don’t know what your entire code snippet does because I don’t have the rest of the code, so I can only offer suggestions.

Get your wanted angle, and convert it to radians.
Place the radians on the wanted axis of an empty CFrame.
Multiply that CFrame with the original CFrame.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.