0

# How can I create a script when you type in a Text and hit the Enter key something happens?

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.

0
I will work on this when I get home... OKay RM0d 305 — 7y

1
Ekkoh 635
7 years ago

You'd use the FocusLost event of a TextBox.

TextBox.FocusLost:connect(function()
print("Text: " .. TextBox.Text)
end)

0
Wow, Thanks man! It works! :) TheeDeathCaster 2336 — 7y
0
Glad I could help :) Ekkoh 635 — 7y