This is a basic implementation of a third person controller in Godot 4.0 with basic state machine.
This project also includes a Camera Controller with collider, as well as zoom-in & zoom-out feature. And lastly, it features an Enemy AI with basic state machine as well.
Feel free to expand this project according to your needs. Cheers!