As in the question how would you make it so LookAt will only rotate through one axis instead of all of them? I tried just putting .Y at the end but errored and said "CFrame expected got number", I also tried to put the look at in part of a vector3 like this Vector3.new(0,LookAt,0) but since it was part of a loop it would just start spinning which is not what I wanted.
NPCCharacter.PrimaryPart.CFrame = CFrame.lookAt(NPCCharacter.HumanoidRootPart.Position, Character.HumanoidRootPart.Position).Y

1 comment
tysm