Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

mouse.Button1Up not firing on top of GUI buttons?

I was working on an inventory click and drag system, but apparently the Button1Up event was not firing when you let go of the left mouse button over something like an imagebutton, textbutton, or textbox. I could add listeners to all the buttons that could replace the button1up event for the mouse, but I was wondering if there was some other solution before I do that. Here's an example of what I'm talking about: https://gyazo.com/5a8e209235ba0ceb943fa8746929373f

1 comment

0

You could try using the MouseButton1Up from the textbutton you are moving instead. The problem is most likely to do with the Acrive property, but if you change that you wont be able to drag it. http://wiki.roblox.com/images/8/87/Active_example.gif

1 answer

Text buttons do not have an event called "Button1Up" and the "mouse.Button1Up" is well.. global? That would fire every time your actual mouse is clicked, not when the button is.

If you want to see MouseButton1Up with a textbutton use .MouseButton1Up.

This discussion is preserved as it was. New answers, comments, and votes are closed.