Basically I want that when users click on the screen where there isn’t a ui button, the current window closes
But I want to let users pan their camera through the default Roblox corescripts
I also don’t want to let the mouse.button1down propagate to all the other connections (e.g: firing a weapon while in a ui window is undesirable)
I am currently using a TextButton but that doesn’t let users pan their cameras
If no better solution is proposed, I will probably check at all the mouse button1down connections if a window is open
Is this a time for ContextActionService? Or is there a very nice modification to the camera corescripts I should do?