Hello, I have a local script that checks for right clicks on the screen but it also detects right clicks when the player uses right click to turn their camera. Is there anyway of not detecting right clicks from camera movement?
1 Like
Not inherently, I don’t believe. You’ll just have to filter them out. You could check if the click ends in the same general area as it started on the screen. If the mouse moved past a certain amount between the InputBegan and the InputEnded, you can assume it was camera movement.
1 Like
The mouse doesn’t move when the camera rotate.
Valid. You could instead check that the mouse hit
or UnitRay
is different. In short, there is no truly reliable way to check; but you can at least filter out most of the unwanted inputs.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.