function lookAt2(chr,target)
if chr.PrimaryPart then
local chrPos=chr.PrimaryPart.Position
local tPos=target.Position
local newCF=CFrame.new(chrPos,tPos)
chr:SetPrimaryPartCFrame(newCF)
end
end
lookAt2(char,v.HumanoidRootPart)
basically I'm using this function in order to make player rotate to certain target but its all choppy and not smooth so I was wondering how I could make it, I was looking everywhere and only solution was using tween service and CFrame.Angles(0,math.rad(n),0) but I need it to rotate to a certain part and I don't know how to do that with tween service and .Angles, anyone knows how I can make it work?

2 comments
it doesn't quiet helps me because I don't know how to use it that way, I can't change it smoothly using tweenservice because it uses setprimarypartcframe
Edited my answer.