I'm making a GUI where you type in some text into a text box, and then when you press the "submit" button it sets the text in that text box to a string value inside of the starter GUI. The problem is when you press the submit button, it changes the value to blank even though there is stuff inside of the text boxes. This is the script that I'm using.
script.Parent.MouseButton1Click:Connect(function()
game.StarterGui.value1.Value = script.Parent.Parent.textbox.text
end)
and in the text label there is
while wait(1) do
script.Parent.Text = game.StarterGui.value1.Value
end
Can someone help?

3 comments
Use tostring it converts a string to a stringvalue
So how would I do that?
Try putting it at line 2