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.

it locks the camera when i do that, but i want to be able move the camera when holding a mouse button, which works but the problem is it works with all mouse buttons