Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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.

1 comment

0

I will work on this when I get home... OKay

1 answer

✓ Accepted answer

You'd use the FocusLost event of a TextBox.

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

2 comments

0

Wow, Thanks man! It works! :)

0

Glad I could help :)

This discussion is preserved as it was. New answers, comments, and votes are closed.