Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

[GUI/Debate] TextBox doesn't work on SurfaceGui's?

Hey all!

I found out that TextBoxes don't work on a SurfaceGui... I didn't even write any code whatsoever and the TextBox wouldn't allow me to insert text?

Any recommendations?

1 answer

✓ Accepted answer

Take it out of the Folder that it's in. Also put it in PlayerGui and use the Adornee property to put it on the Part in question.

9 comments

0

By Folder you mean workspace.Part.SurfaceGui.TextBox for example?

0

I cannot see Adornee in the Properties

0

Adornee is in SurfaceGui

0

Could you please show me an example of how to use the Adornee feature, keeping in mind that there are scripts which are already linked to the current SurfaceGui?

0

SurfaceGui.Adornee = Part; Was that so hard?

0

I want to access the GUI from another script within a different part

0

And this is an issue, why?

0

Part2 script: Part1.SurfaceGui.Frame Since the SurfaceGui is no longer in Part1, what's the solution to that

0

And can we access the children of the Adornee like so: script.Parent.Adornee.SpotLight

This discussion is preserved as it was. New answers, comments, and votes are closed.