My Mathf.Lerp doesn't work when I build my project, why is that?

It works completely fine in the editor but when i build my project it doesn’t work… Help?

Give us some code example or do some debugging with Debug.Log() so you know what is going on.

Well the issue is that when i build my project its kinda like the T in the Mathf.Lerp was changed to 1. This applies to every lerp in the project.

This is one of my scripts that uses Mathf.Lerp:

transform.position = new Vector3(Mathf.LerpUnclamped(transform.position.x, Player.transform.position.x, TurnSpeed), transform.position.y, transform.position.z);

Again, it works perfectly fine in the editor but in the build its not smooth at all.

The ‘T’ value in lerp is usually between zero and 1. It defines the degree of interpolation. 0.5 being halfway.
I’m not sure what the TurnSpeed value is. You probably need to multiply TurnSpeed by Time.deltaTime so that it alters the lerp over time independent of frame rate. A second multiplier/divider in there may also be needed to scale things to the duration you want.