How would I force player to smoothly turn at part?
01 | function lookAt 2 (chr,target) |
02 | if chr.PrimaryPart then |
03 | local chrPos = chr.PrimaryPart.Position |
04 | local tPos = target.Position |
05 | local newCF = CFrame.new(chrPos,tPos) |
06 | chr:SetPrimaryPartCFrame(newCF) |
10 | lookAt 2 (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?