Unity Move Camera to Player Fluent

Camera cam = Camera.main;
float speed = 5f;
cam.transform.position = Vector3.Slerp(cam.transform.position, target.transform.position, Time.deltaTime * speed);
TebionDL