Problem with BodyPosition when updating the position

When the character moves, the script updates the position of the bodyposition so that it follows the Attachment, the problem is that the “Follow” seems to be incorrect, since it leaves the offset/path

Here is the script!

    local WeldAtt = Instance.new("Attachment", Char.HumanoidRootPart)
	WeldAtt.Name = "WelldATT"
	WeldAtt.Position = Char.HumanoidRootPart.CFrame * CFrame.new(3, 3 - 3.4, 7).Position
	
	
	local CamHolder = Instance.new("Part", Char)
	CamHolder.CFrame = WeldAtt.CFrame * CFrame.new(0,0,0)
	CamHolder.Size = Vector3.new(1,1,1)
	CamHolder.CanCollide = false
	
	local BP = Instance.new("BodyPosition", CamHolder)
	BP.D = 900
	BP.P = 8500 
	
	RunSDis = RunS.RenderStepped:Connect(function(dt)
	
		onMouseMove() --ignore this

		BP.Position = WeldAtt.WorldCFrame.Position 
    end)

LinkVideo

Try to use “AlingPosition” but the problem is the same, even worse
;v;

its doing this since the power (P) and damping (D) controls how fast the BodyPosition will respond to the new position. smaller means slower

if you want an instant reaction, then AlignPosition will work, just enable RigidityEnabled

Hi! Im looking that type of Power/Damping, Since it is to Place the CFrame of the camera in the Part.
I am using this to have that type of flow, the problem is that when going backwards, sometimes the BodyPos goes behind the character, instead of following the path of the Attachment

i dont know what you mean here, the video is doing exactly what the code will do
whenever the attachment moves, the part will lag behind by a small amount