Surface Gui buttons wont work! Help

I’ve looked in a lot of places for a solution but none of them have worked or even helped. Basically my issue is that I have a part in the workspace that is the adornee for a surface gui that i have in startergui and this gui has buttons! However the buttons only work when the gui is set to AlwaysOnTop which is extremely unhelpful for what im trying to do.

Here is a video:

buttons in surfaceGUIs can only work when you put it in StarterGui. put your gui in StarterGui then set the Adornee to the part

2 Likes

Maybe the ToolPunchThroughDistance is a little wrong.

1 Like

Did you read my description at all? It is in the startergui

2 Likes

Maybe, the current solution I found is that the buttons only work if the part that the surface gui is connected to is set to cancollide on

1 Like

Do you have errors? If not, is your code in a LocalScript?

1 Like

No errors at all, its in a server script and has local script buttons. The current solution ive found is to turn can collide on and make the surface gui part in a different collision group from the players

I had the same issue, but it can be fixed by setting CanQuery to true if the adornee has CanCollide set to false!

1 Like