Hiding a Cursor?

I am trying to make a script that I can hide the cursor but not lock its position. I have the script used in the fps tutorial that will hide it and lock it but I am not sure how I can modify it so that it only hides the cursor and doesn't lock its position. Could someone assist me on a way to modify that script? (or if it is something completely different?) Thank you.



I'm sure you could work off of this, simply make it so that the mouse is always hidden, set it to disapeer after a negative value of time or something.

just put this script in an empty game object and save it as .js

void Start ()
    Screen.showCursor = false;