I can't figure out how to be able to smoothen the movement between two rotations

I’m using whatever the newest version of Godot is. I’m brand new to Godot and programming in general but I’m trying to create smooth movement from one objects rotation to another. I want to be able to set “twist pivot” rotation to the “player_model” rotation smoothly without just snapping it to the other. I know I can use lerp but I don’t understand how I would go about that. this is my code so far`

if not Input.is_action_pressed(“free_cam”):
twist_pivot.basis = player_model.basis`

You can use lerp_angle. I have a tutorial about a smooth rotation.