SurfaceGui TextButton Not Receiving Inputs

  1. What do you want to achieve? Keep it simple and clear!
    A: I have several buttons on SurfaceGui’s that follow the camera specifically for mobile players. I want to have it so that when they click on the buttons, it follows that input.

  2. What is the issue? Include screenshots / videos if possible!
    A: Code works perfectly fine, the only problem is that the buttons don’t receive inputs at all if there is a part obstructing the way, even with the AlwaysOnTop property on.

This can be seen in this video.


The buttons work perfectly fine when I’m looking up in the air where there are no parts obstructing the buttons. It is only when I look down at the baseplate when the buttons proceed to not function.

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    A: Nobody has really even touched upon this issue before or at least I haven’t found anything that can really help me. This isn’t really my biggest priority at the current moment.

Have you tried doing “Print”? Can you show all the button settings?

Sorry for making you reply to this topic just as I found a solution for the problem I had.

I ended up making invisible TextButtons on a Screengui follow the movement of the buttons using CurrentCamera’s :WorldToScreenPoint function. Now the buttons will always follow inputs from the player.

I’m glad you found a solution to the problem :slight_smile:

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