#When should i use lerp()
1 messages · Page 1 of 1 (latest)
Use lerp() when you want to smoothly move or change a value yourself every frame, instead of using a Tween animation.
should't tweenservice be smoother?
not necessarily
wait u mean on the server
if its on the server yes
i think lerp is better
lerp gives you more control over the interpolation of an object/value.
Usually you will use lerp() on physical objects because it can change while the object is in motion. (In a heartbeat for example)
Tween service runs on 1 animation and when you call :Play or wtv it’ll follow that A -> B trajectory no matter what.
This is the general usage in a practical sense: https://devforum.roblox.com/t/how-do-i-make-pet-follow-system/3308281/4
basically tween service isnt accurate for moving stuff it might overshoot , lerp never overshoots its basically good for projectiles
Last sentence is false
You can use tweenservice:getvalue
Research it
It’s like lerp but with easing styles
it’s only used to move an object once, not follow
Did you read what I sent or only glance over it
He said Tween service runs on 1 animation, dont know why you said the last sentence is false even though it does.
I said it’s false because it is
Big misconception
When you create a tween yes it is one animation
But when you incorporate getvalue then you can have it almost exactly like lerp but with easing styles
Lerp is linear interpolation
Getvalue lets you interpolate based off of easing
I don’t understand why it’s so hard to just simply google getvalue
💔 💔
Are you still gonna persist with your misinformation or will you take five minutes of your time to research what I told you to
tween is lerp tho https://create.roblox.com/docs/reference/engine/classes/TweenService#GetValue they have mildly different use cases but fundamentally the same tech. it's like saying a plate is better than a bowl - the comparison just doesn't make any sense.
yeah but why the fucj would you ever do that
i know you can pause and resume like a lerp technically
but its like
why
just lerp
i see you can use getvalue but i feel like (maybe im wrong ive never used it) it’d end up making the interpolation look a little bit more choppy if you’re not careful
you can make both of them work but like why with the extra overhead
You can pause and resume tweens too
I never use getvalue
But it’s just clearing up what he was thinking