How do I know if a Vector2 coordinates are on top of a GuiObject or not

Is there any solution if I have a x and y value in a Vector2 value, Is it possible to get all the GuiObjects that are being overlayed on those coordinates?
Such as, a Frame is 50, 50 in height and length, and has a position on the center of the screen with its anchor point being 0.5,0.5. And I want to know if coordinates 75, and 60 does intersect with that frame, if they do, then return it.
How do I achieve this?

use localPlayer.PlayerGui:GetGuiObjectsAtPosition

1 Like

It works, really well. Thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.