Cursor is always pointing at a specific spot on the map?

I’m trying to make a script where if a player equips a tool, it goes into a fixed 3rd person. It works, however, it’s always pointing to a specific spot on the map everytime I equip the firearm tool.

firearm.Equipped:Connect(function(mouse, character)
	
	local cameraOffSet = Vector3.new(2, 2, 8)
	
	camera.CameraType = Enum.CameraType.Scriptable

	userInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
	
	local character = player.Character
	local humanoid = character:WaitForChild("Humanoid")
	local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
	
	local cameraAngleX = 0
	local cameraAngleY = 0
	
	local function playerInput(actionName, inputState, inputObject)
		if inputState == Enum.UserInputState.Change then
			cameraAngleX -= inputObject.Delta.X
			cameraAngleY = math.clamp(cameraAngleY - inputObject.Delta.Y * 0.4, -40, 40) -- Change 0.4 if needed
				
		end
	end
	contextActionService:BindAction("PlayerInput", playerInput, false, Enum.UserInputType.MouseMovement, Enum.UserInputType.Touch)
	runService:BindToRenderStep("CameraUpdate", Enum.RenderPriority.Camera.Value, function()
		local startCFrame = CFrame.new(humanoidRootPart.CFrame.Position) * CFrame.Angles(0, math.rad(cameraAngleX), 0) * CFrame.Angles(math.rad(cameraAngleY), 0, 0)
		local cameraCFrame = startCFrame:PointToWorldSpace(cameraOffSet)
		local cameraFocus = startCFrame:PointToWorldSpace(Vector3.new(cameraOffSet.X, cameraOffSet.Y, -1000000))
		camera.CFrame = CFrame.lookAt(cameraCFrame, cameraFocus)
		
		local lookingCFrame = CFrame.lookAt(humanoidRootPart.Position, camera.CFrame:PointToWorldSpace(Vector3.new(0, 0, -100000)))
		humanoidRootPart.CFrame = CFrame.fromMatrix(humanoidRootPart.Position, lookingCFrame.XVector, humanoidRootPart.CFrame.YVector)	
	end)	
end)

It seems that the CFrame is pointing in space with Vector3 causing it to be set to a specific location that is fixed and not expected. You should use CFrame * CFrame operations instead of CFrame:PointToWorldSpace(Vector3) because that’s equivalent of CFrame * Vector3.

I’m kinda new to this third person camera stuff. How would you change my code above to do a CFrame * CFrame operation?