Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why isn't Mouseleave firing on billboard guis?

Asked by 5 years ago

I've been stuck on it for a bit but nothing I try will fire it. The script is extremely basic but doesn't work.

local Button = script.Parent.ImageButton



Button.MouseEnter:connect(function()
    Button.ImageTransparency = 0
end)

Button.MouseLeave:connect(function()
    Button.ImageTransparency = 1
end)

But this happens: https://gyazo.com/f0b2dfc25597b7894a9e6bf4dc7d7023

0
weird.. did you set the gui's adornee? awesomeipod 607 — 5y
0
Yeah, mouseenter works as you can see, but mouseleave don't. Witchest 48 — 5y
0
Even though this doesn't really fix your script, you should start using :Connect() instead of :connect() since:connect() is deprecated. Here is an article about deprecation: http://robloxdev.com/articles/Deprecation saSlol2436 716 — 5y
0
you should start using :Connect() instead of :connect() since:connect() is deprecated.This is correct l3gendrasp -5 — 5y
0
That wasn't question. Don't comment if you are not addressing it, especially if someone has said it before, please and thank you. Witchest 48 — 5y

Answer this question