TextButtons usually do not work on a surfaceGui, and I wondered the best way to make a UI with clickable buttons on a surfaceGui
2 Likes
It’s the same thing as creating interface GUIs, but for client’s input, you would have to listen for inputs in a LocalScript.
1 Like
As an alternative to using a TextButton, you could use a ClickDetector to detect clicks. They are superior in some cases, because they can be used on the server, and pass the player as an argument to the .MouseClick event.
You have to put the surfacegui in startergui, and set the adornee to the part for it to be clickable
2 Likes