How to unlock mouse cursor when you have a fps controller asset?

Hello everyone,
I’m doing a school project and I’v ran into one slight problem : I have imported the fps controller asset from unity, and at some times the player will be disabled and they will have to do some gameplay with the cursor. Now the problem is that fps controller has a public variable Lock Cursor, which locks it for the whole game and I can’t unlock it. I’v tried code lines like Cursor.LockState and Cursor.Visible and after that I tried accessing the fps controller script aswell, but had no luck. As the dead end is nearing, I don’t have the time to make a fps controller by myself because I’m fairly new to the whole Unity development.
Any help would be appreciated,
best regards.

Try making a script in the other scene and put Obstruction = Target;
Cursor.visible = false;
Cursor.lockState = CursorLockMode.Locked; in the void start method