I’ve run into an issue with .MouseButton1Click event where it just doesn’t trigger upon clicking.
It’s a TextButton in SurfaceGui with this structure:
I made sure to set the Active property to false on all the other parent / children elements.
I agree, it annoyed me when I was making a menu that the camera tweens to focus on. I simply just added a loading screen that waited long enough for the camera to tween, and then enabled the AlwaysOnTop property when it was hidden.
Yeah I understand the workaround for this kind of stuff is viable, however I have the button on a gate of zones with multiple other elements. So it’s basically impossible to have it AlwaysOnTop.
Hi . Did you try printing something after MouseButton1Down? Did you try printing Ui and checking if the Ui object is the same as the one displayed on the screen?
I’ve tried printing before connecting to make sure the function gets connected, and after the MouseButton1Click too. I haven’t tried printing the UI out, but I’m fairly sure it’s the same UI because of previous checks.
EDIT: Tried changing the text of the TextButton to make sure it’s connecting to the right one and it is.