Script to make the camera with zoom follow the player?

Hello everyone, I am using the following script to change the zoom on the different maps in my game:

Code:
$gameScreen.startZoom($gamePlayer.screenX(), $gamePlayer.screenY(), x, x);

The problem is that the camera does not follow the player, is there a script for this?
Try this
Try this
it does not work correctly :/
Provided that you aren't accidentally posting in the wrong forum (Your profile says MV, but you're posting in the MZ forum), this one can do what you're asking.
Provided that you aren't accidentally posting in the wrong forum (Your profile says MV, but you're posing in the MZ forum), this one can do what you're asking.
I was reading forums and plugins all day and I couldn't solve it, I'm really surprised. It worked perfect, it does exactly what I needed!
(My profile says MV because I started using MZ yesterday, I'm trying to pass the project I had)

Thanks so much for the help!

Original thread: https://forums.rpgmakerweb.com/threads/script-to-make-the-camera-with-zoom-follow-the-player.162616/