I’m simply just trying to move a model behind a target part by 80 studs and face it towards the target part while using :PivotTo().
However, the monster gets teleported behind the part by 80 studs like I wanted, but the right side of the monster is facing the part, not the front.
Any feedback helps!
CFrame.new(workspace.TestPart.Position - (workspace.TestPart.CFrame.LookVector * 80),
(workspace.TestPart.Position - (workspace.TestPart.CFrame.LookVector * 80) + workspace.TestPart.Position ))
If the monster is consistently rotating but faces the wrong direction, you can multiply the CFrame using CFrame.Angles and rotate the monster (you will need to use math.rad) until it faces the correct direction. If the monster just isn’t looking at the target, I would recommend using CFrame.lookat rather than your current method.
Most probably because the rotation of your Character Model has some offset to it. Just add some offset of about 90° or -90°, or just play around with it until it looks right.
cframe = CFrame.new(position, lookAt) * CFrame.Angles(0, math.rad(90), 0)