How can I change my playerbodys scale with lerp

Godot Version

Godot v4.6.3.

Question

I am quite new to coding and I am trying to figure out how to make my crouching here be smooth and not instant snaps but I am not sure where I can fit in lerp

playerbody is my CharacterBody3D

if Input.is_action_pressed("crouch") and is_on_floor():
		playerbody.scale = Vector3(1.0, 0.5, 1.0)
	else:
		playerbody.scale = Vector3(1.0, 1.0, 1.0)

You could set your players scale as a player_target_scale, then elsewhere lerp current scale to target scale (in _process somewhere) using delta and a smoothing multiplier. Or you could implement a tween to tween the scale.