GuiObject.MouseEnter for plugin Guis?

Edit: Mousebutton1Click events aren’t working either

Is it possible to make a connection event using Gui.MouseEnter on a Plugin’s Gui or CoreGuis? I’ve tried LocalScripts and Scripts but neither seem to work.

1 Like

I found an unmarked solution in this ScriptingHelpers thread by @doncellanerdy which is the best workaround. All you have to do is wrap your event with a ChildAdded event:

game:GetService("CoreGui").ChildAdded:Connect(function(child)
    child.TextButton.MouseButton1Click:Connect(function()
        --do stuff
    end)
end)
1 Like