Issue with MouseLeave event

While doing a interaction system, i found a issue with the MouseLeave event when used on some button inside a billboard gui. When i use MouseEnter or MouseButton1Down it works perfectly, but when i use MouseLeave it don’t work.

I’ve already changed the script a lot, tried using InputBegan, tried the madattak mouse module, but nothing seems to work… any help will be appreciated

Action 19-09-2021 15-42-23

Here’s the part of my code that handle these events

self._button.MouseEnter:Connect(function()
    print('MouseEnter')
    self._description.Visible = true
end)

self._button.MouseLeave:Connect(function()
    print('MouseLeave')
    self._description.Visible = false
end)
2 Likes

Have you tried toggling the transparency property from 0 when the cursor enters the dimensions of the button to 1 when the cursor leaves the dimensions of the button?

The MouseLeave event simply doesn’t fire so that will not work

It’s been an issue on Billboard Gui’s for a while:

1 Like

Mostly unrelated, but I would highly recommend using ProximityPrompts with .Style set to ‘Custom’, not only is the prompt polling more efficient, but the events they expose will easily allow you to manipulate your custom gui:

https://developer.roblox.com/en-us/api-reference/class/ProximityPrompt