What is wrong with my script?

Per the you tube zoom tutorial, here is my script:


Var xPos = $gamePlayer.screenX();
Var yPos = $gamePlayer.screenY();
$gameScreen.startZoom(xPos, yPos, 2.0, 300);

Here is my error message:
Syntax Error
Unexpected Identifier

What went wrong?
I tried just removing the Var part of your variable declarations and that fixed it

Spoiler: Revised Script
Code:
xPos = $gamePlayer.screenX();
yPos = $gamePlayer.screenY();
$gameScreen.startZoom(xPos, yPos, 2.0, 300);
or maybe use var instead of Var?
Removing the Var worked!

Thanks!!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/what-is-wrong-with-my-script.101159/