So I've made a for loop after the lerp was finished, one for the opening animation for a door, and one for the closing. But the animation that closes it doesn't go as smooth as the first, I've made the two loops have the exact same properties, still doesn't work though...
✓ ANSWER ACCEPTED
How do I reverse a lerp like I reverse one in tween?
1 answer
✓ Accepted answer
Reverse the for loop incrementors.
for i = 0, 1, 0.1 do
X:Lerp(Y, i)
end
will interpolate forwards.
for i = 1, 0, -0.1 do
X:Lerp(Y, i)
end
will interpolate backwards. Notice how I did -0.1 instead of 0.1.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Post your code