Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Possible to lerp a number?

What I mean is if I could change the value of a number from for example 1 to 5 but smoothly and over time with something like quad as an easing style? Also, I would appreciate if you give a small snippet of code so I can check it out.

1 comment

1 answer

✓ Accepted answer

Linear Interpolation is quite an easy formula.

function Lerp(a, b, t)
	return a + (b - a) * t
end

1 comment

0

Yeah, I think my brain was dead late in the night.

This discussion is preserved as it was. New answers, comments, and votes are closed.