I’ve been working on my game and when I got to mobile support, I noticed that .MouseButton1Click only worked on some UI buttons, and some not at all, it didn’t even detect a click. When I switched to MouseButton1Down, it all the sudden worked. Is there an explanation for this? I don’t understand why or how this could happen. I looked through some posts on the forum with no exact pinpoint answer to this, which confused me even more. If someone could help it would be much appreciated.
the difference between .MouseButton1Click and .MouseButton1Down is that .MouseButton1Click only fires if the player presses and releases the mouse while hovering over the GuiButton, and .MouseButton1Down fires as soon as the mouse is pressed
I am completely aware of the differences between .MouseButton1Click and .MouseButton1Down.
It’s likely because as per the documentation for .MouseButton1Click, “If the mouse leaves the bounds of the GuiButton and is released, the event will not fire”, my guess is on mobile it’s hard to reciprocate when a mobile user clicks (taps) their screen and still has their finger on the GuiButton. This is obviously not intended and if this is the case, it should be reported as an engine bug.
You’re better off using MouseButton1Down and MouseButton1Up.
I mean I was using Roblox Studio’s mobile testing thing and it wasnt working with a mouse click, and i tried directly clicking on it on my phone with no success. This seems closest to the answer to me. Thanks!