What is Lerp, and is it just a worse version of TweenService? Is it deprecated?

I’ve heard that Lerp should not be used and that I should use TweenService instead. Is this correct?

1 Like

Lerp() just means linear interpolation. It isn’t deprecated, it’s a raw math function that uses a linear function to interpolate between two values. With that said, you should probably just use TweenService.

11 Likes

Is there some niche use case for Lerp() where it is better to use than TweenService?

1 Like

I think that lerp causes more lag comparing to tween. (however they are pretty different)

1 Like

You can use :Lerp() to position a part between two other points with a specified alpha.

11 Likes

oh, I see. Thanks for the explanation everyone! :slight_smile:

oh that seems like it could be useful in some cases. thanks!

1 Like

I don’t think there is practically any (negligible) difference. Tweens actually use linear interpolation.

3 Likes

Yes, let’s say you want to do math to create a more complicated animation, such as a curved path. You’d use lerp rather than tween.