Help! I have a script to set show mouse boolean true which works but it does not let me drag my mouse to move the camera untill i click, and the same goes when i disable it.

even when i package the game i have to click, so when i disable or enable mouse cursor i have to click and It does let me keep control over the camera and its very annoying