Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can you please explain more about how Lerp works?

Asked by 6 years ago

Can anyone please explain more about how Lerp works? I've been researching on Roblox Wiki, but I don't quite understand how Lerp works. Can someone please explain to me more about how Lerping works? Can you also explain how you can use Lerp to transition from one color to another?

1 answer

Log in to vote
1
Answered by 6 years ago

Lerp, short for Linear Interpolation, is used to get a point between two other points. If Point A is one end of a line segment and Point B is the other end, and you were halfway between them and wanted to know exactly where that area was, you would use Lerp() for that scenario. As for transitioning from one color to another, it is a better idea to use TweenService.

0
What TweenService would I use exactly for transitioning color? Also, someone helped me with transitioning color through lerp dakanji123 97 — 6y
Ad

Answer this question