How do you determine if mouse is over a CoreGui element?

I am currently working on a custom mouse. However since CoreGui elements have higher priority over PlayerGui ones my mouse cannot go over them. I can still click on them since it’s using the mouse location via UserInputService::GetMouseLocation and it’s the built-in mouse clicking, but I have the default mouse icon disabled. So it looks weird with the mouse being under the player list for example.

I first attempted using BasePlayerGui::GetGuiObjectsAtPosition but that does not include CoreGui elements. And searching seems to yield unrelated/no useful results.

In short I am looking for a way to determine if the mouse is over a CoreGui element so I can disable my mouse and let Roblox’s take over for CoreGuis

4 Likes

The way to do that is you can assign a keybind that will activate a gui then you can place the same gui object on the CoreGUI element and boom! Problem solved

Was the ever a solution you discovered?