Camera Lerp Jitter

I already kind of get the reason why this is not working, but I think it would be better if someone helped me out on this.

I want to make a camera that follows the player in a 2D Way but lags behind and catches up to player.

You can kinda see what im trying to accomplish from my attempt:

This is my code:

Thanks in advance

1 Like

Nvm just fixed it myself, for those who are looking to make something similar here is the code

It looks something like this:

With a little work you can make it smoother but this is my answer.

1 Like

On a side note I don’t recommend this, you may want to use the tween service, as this causes issues for mobile users, who have less computational power. So replacing the lerp part with Tween can improve this feature.