I’ve heard that Lerp should not be used and that I should use TweenService instead. Is this correct?
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.
Is there some niche use case for Lerp() where it is better to use than TweenService?
I think that lerp causes more lag comparing to tween. (however they are pretty different)
You can use :Lerp()
to position a part between two other points with a specified alpha.
oh, I see. Thanks for the explanation everyone!
oh that seems like it could be useful in some cases. thanks!
I don’t think there is practically any (negligible) difference. Tweens actually use linear interpolation.
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.