Creating an editable TextBox on a part

I’m trying to make a part that has a search bar using a TextBox. Is it possible to make a TextBox act the same way it would on a ScreenGui in a SurfaceGui? Such as a player can type inside it and edit the prompt. Thanks!

3 Likes

Yes it is possible to add text boxes in surfaceGui’s. Have you tried doing it at your own?

Sorry if I am misunderstanding your question

Yeah, I know how to do it. I’m trying to make it so you can edit the text in it similar to a ScreenGui but on a Part.

Can you elaborate what the problem is?
As far as I know text boxes function the same in SurfacGui just like screenGui’s

Okay so what you need to do is make sure the SurfaceGui is a descendant (somewhere in) the players GUI

You can then set the Adornee property of the SurfaceGui to the part you want it to be on. You should then be able to type into the TextBox

I think that’s a bit confusing so here’s a example place file
SurfaceGuiTextBox.rbxl (20.6 KB)

Hope that helps :slight_smile:

17 Likes