Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why don't TextBoxes work on SurfaceGUIs?

Asked by 7 years ago

I've been trying to get around why my TextBox isn't working on a SurfaceGui. At first, I tested it in Studio, in Play Solo, I thought it would work Online. Online, though, it didn't work either. I even tried in a different game, and it still wouldn't let me click into the textbox and type into it. If you don't believe me, here's some proof. As you can see, there isn't normally the black cursor that would pop up when you hover over a text box. Has anyone else got the same problem, or is it something to do with my game client or what?

0
I have the same problem. I wish I could click on that link but I am at school and it is blocked ;( but I am guessing it is proof of it being possible. FiredDusk 1466 — 7y
3
Instead of parenting the SurfaceGui to the part itself, try putting it inside the PlayerGui and setting its Adornee. nicemike40 486 — 7y
0
@nicemike40 I'll try. User#35 0 — 7y
0
@nicemike40's solution will work. V_ChampionSSR 247 — 7y

1 answer

Log in to vote
3
Answered by 7 years ago
Edited 7 years ago

TextBoxes can not be used in SurfaceGui's on the server because you can type something inappropriate without actually submitting it -- and other players would be able to see that too.

What you can do however is setting the SurfaceGui's Adornee to the part you want the SurfaceGui to appear:

script.Parent.Adornee = workspace.Part

It should then work, however any interactions with the SurfaceGui will not be visible to other players.

0
Thanks! It worked. User#35 0 — 7y
0
No problem! Happy scripting, and happy halloween V_ChampionSSR 247 — 7y
Ad

Answer this question