New Player Controller Won't Let Me Drive Car

I had a player controller that let me drive in a car in version 5.2. I since made a new player controller and tried to bring the code over to the new one, but instead won’t let me drive AND gives me errors.
What do I change?

New Player Controller With Old Driving Code:

The Controller of the Car:

Errors:

You put you controller into the AI controller slot.
That part is only for AI

You need to set your controller in your game mode and possess your car actor with your player controller.

I fixed the AI controller part. The rest of it is already correct.

image

Still nothing works and I get endless errors.

The errors also pointed towards a missing vehicle hud. You either need to switch dynamically to it or remove whatever is calling get vehicle hud because it is none.

Your vehicle class also needs to have input setup for turning, acceleration and braking that reacts ti your input.

My vehicle is the UE5 starter car. I just added a different mesh over it, the base controls are still there and it worked perfectly before I moved the code over.

I even went to the original vehicle player controller and posted the code back in, but even that DOESN"T WORK now. It was the exact same code from before, but it refuses to work.