I’m making a donation board and I made a surface gui, it is parented under the playergui. I have code that prints out when the user clicks the buttons, but it only fires when the user double clicks the button with their left mouse buttons. The weird thing is that it works with right click and works with left click if AlwaysOnTop is set to true, but of course I don’t want AlwaysOnTop to be true. I really do not know why this is happening.
What I’ve tried:
- Settings Z-Index of buttons to be higher.
- Setting Display Order of Surface Gui to be higher.
- Setting Surface Gui ZIndexBehavior to Global
- Tried using different mouse events.
- Tried just havintg 1 surface gui with buttons.
- Setting adornee correctly.
- Setting max distance and toolPunchThroughDistance.
As seen here, the first print does work, it prints “Listening to button clicks…”, yet the MouseButton1Down only fires on double left click or right click etc.
I’ve been stuck on this for 3 days now. I’ve tried every possible solution, I do not know how to solve this. Even MouseEnter still fires, so I am hovering over it, it just requires a double left click.