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

How to Change the Text in a TextBox?

Asked by 10 years ago

I am working with SurfaceGuis. I have a TextBox as part of the SurfaceGuis, and the SuraceGui is in the starter Gui, thus allowing the player to change the data in the text field. It changes it on the screen, and changes the text value to be the new thing, but when I try to run a function based on it, it's not working. If I make the function work when the text is blank, it works fine. If I make it, let's say "Test" and type in "Test" as the player, it doesn't work. If anyone knows how to make it register the fact that a player typed in the box, please tell me.

1 answer

Log in to vote
0
Answered by
mnaj22 44
10 years ago

So you want it on the screen correct? Or on a block?

0
It's all set up and everything, works fine. When you click on the TextBox, you can type in new values, and it shows the new values, just doesn't seem to register them. Not sure why. Vescatur 95 — 10y
0
Well don't put a surface gui in the starter gui. Make a screen gui and put it in the starter gui. If you want the surface gui, put the surface gui inside a part/block. mnaj22 44 — 10y
0
@mnaj Putting a SurfaceGui into the PlayerGui localizes it though. TheGuyWithAShortName 673 — 10y
Ad

Answer this question