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

mouse.Button1Up not firing on top of GUI buttons?

Asked by
Zydico 2
6 years ago
Edited 6 years ago

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

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 mattscy 3725 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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.

Ad

Answer this question