How to smooth a single value over time?

Hey guys,

I need to smooth a single variable that changes its value overtime. I know that the lerp function should go for this, but therefor you need to have a start value and a target value, I only have one.

Got someone have an idea?
Thanks!

Now I tried this one:

void Update ()
	{		
velocityX1 = velocityX;
		
	} 

	void LateUpdate ()
	{
		velocityX2 = velocityX;
		
		finalVelocityX = Mathf.Lerp(velocityX1, velocityX2, (0.0002f* Time.time));
		
		
		/// Rotate by using arms
		playerTurning.Rotate(0.0f,(finalVelocityX* -(rotateForceInput) * Time.deltaTime),0.0f );
	}

No error, but it has no effect as well :frowning: