Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 9 years ago

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 — 9y

1 answer

Log in to vote
1
Answered by
Ekkoh 635 Moderation Voter
9 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 2368 — 9y
0
Glad I could help :) Ekkoh 635 — 9y
Ad

Answer this question