Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would you return a boolean value if Mouse.Hit is not within X angle?

Asked by 4 years ago

I'm trying to create a script that would return true or false if the mouse is within the area defined by projecting an area who's bounds are defined by two lines originating from the front of the Part going in the direction of the lookVector + X (say 10 degrees) angle to each side. How would one go about doing this? Visual representation: https://gyazo.com/8e55ae829bff021edc2b58f109860bdc

In the picture I would like it to return a bool value if the mouse is within the area represented by the one in blue.

Answer this question