Making character rotate to where camera is facing

I have two scripts, one for AWSD movement and one that makes the camera follow the curser. I want the character to go in the direction that the curser/camera facing, so if the player moves the curser to the left, that will be the new forward, if that makes sense

Unless you are doing something offbeat, the standard way of doing this is to make the camera a child of the player. You don’t then need to have a separate script for the camera. This simple script should be sufficient to move player and camera together:

using UnityEngine;

public class MoveCube : MonoBehaviour
	[SerializeField] float speed = 5f;
	[SerializeField] float rotSpeed = 10;

	void Update()
		float rotation = Input.GetAxis("Mouse X");

		float x = Input.GetAxisRaw("Horizontal");
		float y = Input.GetAxisRaw("Vertical");
		Vector3 direction = new Vector3(x, 0, y).normalized;

		transform.Rotate(new Vector3(0, rotation * rotSpeed, 0));
		transform.Translate(direction * speed * Time.deltaTime);

In the inspector, you might like to set the camera to position (0, 5, -5), rotation (20, 0, 0). That gives you a nice 3rd person view of the player.

I need to reorient my direction, like you said