SurfaceUI buttons hard to click

I made a leaderboard SurfaceGui with 2 tabs. These tabs serve to open their respective leaderboards, but it’s hard to click on them (especially when hovering over the button text or a bit above the center of a button). This means that I have to move the mouse around the tab for an annoying amount of time to click on a tab.

I did not alter the hovering or anything at all, they’re the default hover reactions you get from TextButtons.

When the camera is positioned very close to these tabs, clicking becomes easier. Other games do not seem to have this problem even from much further distances, what is the issue?

EDIT:
Moving the camera (y-axis) upwards makes clicking easier:

Player/camera distance did not matter at all, only the y-position of the camera.

Is this a bug? Or am I missing some setting?

4 Likes

Maybe try checking the Z-index of your buttons. If one button has a higher Z-index than another, it might be blocking the clicks on the one below it. or idk maybe its overlapping or its a bug. I definitely saw this before, because it happened to me in some roblox games in the past.

1 Like

Did not help unfortunately. Did the issue resolve itself when you had it?

I never had the issue, i meant I saw it in roblox games not my roblox games though.

I don’t know how to help, but i guess its definitely something with the gui positioning or idk

If the SurfaceGui is placed somewhere in the workspace then it will not work. Place it somewhere in the StarterGui and link it to the part by setting the Adornee to that desired part.

that would make a lot of sense now if it was in workspace

The SurfaceGui works though, the buttons are just hard to click but it clicks as can be seen in the video (the leaderboard is just empty right now, but tab color changes). I still tried putting it in StarterGui and setting the Adornee, but the buttons are still hard to click as before.

Moving the camera (y-axis) upwards makes clicking easier:

Player/camera distance did not matter at all, only the y-position of the camera.

Is this a bug? Or am I missing some setting?

1 Like

Check if there are any invisible parts in front of the SurfaceGui part (Also there could be locked invisible parts in front of it).
I also remade a simpler version of your gui, try checking if that works. If it works then try to copy its properties to your real gui.
niceGuiPart.rbxm (15.4 KB)
(It should print out stuff in output when buttons are clicked)

1 Like

Thank you! Your GUI worked fine no matter the height I set, I went back to my game and found out that the white stripes (invisible part) in my skybox were overlapping with the top of my GUI, which made the clicking impossible unless my camera clipped through this invisible part.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.