Positioning issue of part on face of other part

I am working on a roblox view camera for a game that is meant to be very specific, this positions the camera at eye level of the user’s character via part and CFrame.

When testing I noticed a large issue, and that was the positioning of the part to match an ideal position of the head’s front face.

Ideal:
image
Issue:
image
around 45 degrees rotated
image
90 degrees rotated

camera.CFrame = CFrame.new(character.Head.Position) * CFrame.new(-0.6, 0.263, 0)

This is the equasion I currently have.
If anyone knows a better way of doing this that would fix my issue, I’d be happy.

1 Like

I still need help here. This post has had no activity, and I would like to get to work.

1 Like

I think i know the cause. You are only taking account of the position of the head. You have to also take account of the orientation. Try this:

camera.CFrame = character.Head.CFrame * CFrame.new(-0.6, 0.263, 0)
1 Like

It does the same issue. The problem is the part being positioned correctly, because when your character rotates the position of the front face of your head changes.

Hi, why not use a Weld or a Motor6D?

1 Like

I have not used a weld in ages, does it support snapping into a surface of another object? I am currently using a WeldConstraint to keep it in the position I set it in.