How to put TextBox Text in a StringValue?

Title is self explainatory, I think I have searched every pixel of the internet and yet found nothing

StringValue.Value = TextBox.Text ? Or do I not understand the question?

3 Likes

As MP3Face said, you can do StringValue.Value = Textbox.Text
If you want to put it into a variable, then you can do local Var = Textbox.Text

I have used this

while wait(.1) do
script.Parent.Value = script.Parent.Parent.Parent.Parent.TextBox.Text
end

But the text won’t go in the string value

I have edited the script:

script.Parent.Parent.TextBox:GetPropertyChangedSignal("Text"):Connect(function()
label.Text = script.Parent.Parent.TextBox.Text
end)

And still, the TextBox Text won’t be applied to the SurfaceGui