Need help with lerping "lookat"

  1. What do I want to achieve?
    I want to Lerp the rotation of the handle to face the character’s head, while keeping the position of the handle at its respective trigger part, with no lerping (see script snippet at bottom). This way, the position would change instantly, but the orientation to face the character’s head would lerp smoothly. I don’t need easing, just default lerp is fine.

  2. What is the issue?
    It doesn’t seem possible to lerp only the rotaton to “look at” while keeping the position changing constant.

  3. What solutions have I tried so far?

  • Looking on the dev forum
  • a bunch more stuff I can’t remember the details of

this next script lerps the position and the orientation. I just want to lerp the orientation to look at the character’s head:

local function Grab(Hand)
	
	BackpackAccessory.Parent = script
	
	GrabbedBackpackModel = ReplicatedStorage.BackpackContent.GrabbedBackpack:Clone()
	GrabbedBackpackModel.Parent = game.Workspace
	local Handle = GrabbedBackpackModel.Handle
	
	if Hand == "Right" then
		GrabConnection = RunService.RenderStepped:Connect(function()
			Handle.CFrame = Handle.CFrame:Lerp(CFrame.new(RightHandTriggerPart.Position, Head.Position) * CFrame.Angles(0, math.rad(90), 0), 0.1)
		end)
	elseif Hand == "Left" then
		GrabConnection = RunService.RenderStepped:Connect(function()
			Handle.CFrame = Handle.CFrame:Lerp(CFrame.new(LeftHandTriggerPart.Position, Head.Position) * CFrame.Angles(0, math.rad(90), 0), 0.1)
		end)
	end
end

I mean, you have to split the operation in more few steps

  1. Get Original CFrame
  2. Lerp it
  3. Apply new CFrame.Rotation to the Original CFrame.Position
-- PSEUDO CODE, DO NOT COPYPASTE
OriginalCFrame = ... -- Your original cframe data before lerping
LerpedCFrame = ... -- Your lerped cframe data to take values from

Handle.CFrame = CFrame.new(OriginalCFrame.Position) * LerpedCFrame.Rotation

I still have not figured out how to do so. The example you sent gives me an idea on what i supposed to do but, everything I do seems to not work. And no matter how hard i try, I cant seem to change cframe angles to face the character’s head without touching the position in any way, meaning I can’t use tween, nor lerp to smoothly rotate the handle, without smoothly moving the position of the handle.