How do I get rid of the cursor?

I have seen countless forums and such covering it, and I have done it before but recently I overwrite the cursor file with some other script and have tried entering codes like
Screen.showCursor = false;

and

void Start ()
{
Screen.showCursor = false;
}

I think I am doing it wrong as I just seem to be pasting them straight into a completely empty C# or javascript script, I can’t even attach them to an object in game as it just says there is a parsing error or some other type of error so I have to finish the compilation before adding the script to an object.

Please please help

Screen.showCursor should work, even in a script with nothing else, it works fine for me.

“I have done it before but recently I overwrite the cursor file with some other script”

that’s probably the problem… editing default scripts that make Unity run is probably a bad idea!

I guess the question is now… Does anyone know how to get the original default file for the cursor back to normal, or what to actually copy in to it?