Hello. I have a problem. I need to check if the mouse is looking at the part that i need. My camera connects to the part with CanQuery and CanCollide disabled. But, when i try to get the target, target is the part with a camera. Up it or down doesnt help. In the small chance it will say that the target is nil or it is the part that i need to look at.
I recommend adding the camera to a folder or model and setting the whole thing to be the filter for the Mouse.TargetFilter = [Ignore this].
Also, MouseMove is great for getting the current Hit of a mouse, but remember that a player can technically move their mouse hit without technically moving it. IE, you back up without touching the mouse. Well, your mouse hit is STILL in the same location it used to be, and it wont update until you touch that mouse again
Thank you a lot, it works! That was the solution
Sweet!
I use this method myself all the time for Grid Placement scripts, since you dont want your sweet mouse.Hit to interfere with whatever youre placing AND the camera itself
Dont forget to mark as a solution!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.