I made a surfaceGUI with a TextBox, and I wanted to be able to input text directly into the TextBox - unfortunately this feature is locked. So instead, I tried to make a script which launched a GUI with a TextBox, and the text entered into the GUI TextBox would appear on the surfaceGUI TextBox.
Here's the script that's in the surfaceGUI TextBox - fairly simple - which won't take the text:
while true do
script.Parent.Text = game.Workspace.GuiGiver.GUI.TextBox.Text
end
Am I using the wrong "repeat" loop?

2 comments
Thanks for the help - the wait() fixed my crashing problem,
But the surfaceGUI TextBox still won't display what I type into the GUI TextBox in-game. Thanks in advance.