How to get an object to face in the direction that it is traveling?

In my new project I was hoping to allow the player to move freely as the camera is able to rotate around him. While trying to set up my third person camera I came to a standstill seeing as my Player would not look in the direction that it is traveling.

        if (Input.GetKey (KeyCode.W)) {
			transform.Translate(camPivot.transform.forward * movementSpeed * Time.deltaTime);
		}

		if (Input.GetKey (KeyCode.S)) {
			transform.Translate(camPivot.transform.forward * -1 * movementSpeed * Time.deltaTime);
		}

		if (Input.GetKey (KeyCode.A)) {
			transform.Translate(camPivot.transform.right * -1 * movementSpeed * Time.deltaTime);
		}
		if (Input.GetKey (KeyCode.D)) {
			transform.Translate(camPivot.transform.right * movementSpeed * Time.deltaTime);
		}

If anyone could help me I’d really appreciate it! Been stuck for 2 days on this T~T

Perhaps you could try TransformDirection? Unity - Scripting API: Transform.TransformDirection. There are some examples of how to use it in a thread here: Transform.TransformPoint VS TransformDirection - Unity Answers