It was a typo. I meant "CursorLockMode" instead of "LockState". I fixed it above.
If F5 reloads the main menu while you're in the main menu, make sure the script that responds to F5 is on a GameObject in the gameplay scene that isn't a "Don't Destroy On Load" GameObject. (The Dialogue Manager GameObject is a "Don't Destroy On Load" GameObject.)
Question About a Main Menu Scene
Re: Question About a Main Menu Scene
Thanks the typo fixed the cursor visible script works as I checked it in an empty scene. I finally did get everything working. I way trying so many different things that I forgot where I started. I eventually removed everything relating to DM and UCC's save system and started over. I must have really messed things up because after I reincorporated DM and UCC's save system I was able to get everything to work as desired. I'm still not completely sure of what was causing the problem. Thanks for the help!
Re: Question About a Main Menu Scene
I'm glad it's working now!