The Title is part of the Question, how can I make a script when you type in a Text into a GUI's TextBox, like in Admin Commands, and it does something, if it doesn't involve a script I'm so sorry for posting this question.
You'd use the FocusLost event of a TextBox.
TextBox.FocusLost:connect(function() print("Text: " .. TextBox.Text) end)