Detecting when mouse hovers on CoreGUI

Hello everyone!

I’m making a custom mouse and, since GuiObjects cannot be placed over CoreGUIs, I wanted to disable it when it is over one.
However, I wasn’t able to find any way to detect wether the mouse is on top of one or not…
Does anyone know any way to do that? Thank you in advance!

1 Like

Since CoreGui objects aren’t accessible when scripting, you won’t be able to directly detect when a player hovers over one. You can however, make an invisible GUI object behind the CoreGui objects you want to react to and listen for when the mouse enters that.

4 Likes

Alas, that’ll have to do. Thanks a lot.

2 Likes

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