Get linked object based on mouse position using angles?

Hi,

I have plenty years of experience in Roblox Studio and scripting, however i can’t seem to figure out this system. I’m trying to recreate the famous weapon wheel from GTA V. I got it working for controller by using the DevHub tutorial but it appears to be extremely difficult to do for the mouse. I think the issue is pretty self-explanatory: i basically want to divide the screen into 8 “triangles”, pointing at the middle of the screen. Then when i hover over those non-physical “triangles” the linked object/button gets selected.

image

Thanks in advance!

Egomoose has a library for this:

1 Like