Hey,
You used the getCursorPosition function wrongly. It doesn't take arguments but returns them.
You can check examples in the link above.
For your case you will need the useful function on the wiki: IsMouseInPosition.
You will need to add the function in your script and then replace your "getCursorPosition" with "isMouseInPosition".