This 1 line is my problem. This is supposed to put the "Part" in front of the HumanoidRootPart and change the Rotation to the HumanoidRootPart's Rotation. It changes the position correctly, but the rotation isn't correct. Help plz ;). Part is an instance that I didn't include in this code.
Part.CFrame = (script.Parent.HumanoidRootPart.CFrame + script.Parent.HumanoidRootPart.CFrame.lookVector * 2) * CFrame.Angles(math.rad(script.Parent.HumanoidRootPart.Rotation.X),math.rad(script.Parent.HumanoidRootPart.Rotation.Y),math.rad(script.Parent.HumanoidRootPart.Rotation.Z))

2 comments
Are you sure the parts are facing the same way?
Yes?