There is an error in my script

I’m new at this and I’m trying to have the camera pan and zoom in on my character while she walks but it keeps on zooming/panning too fast and goes ahead of the character…

You can just make the pan and zoom take longer. Where you wrote in 4, make it in 5 or in 6. Just keep adjusting it until it takes as long as you want it to.