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

Help with getting text from textbox after player types?

Sorry i don't have much code but a couple years ago my friend told me how to do this and i forgot it was something like this. ( I don't remember sorry)

if script.Parent.FocusLost:Connect()EnterKeyPressed

I just want a reminder if anyone knows how to see if enter key was pressed that's all i need help with.

1 answer

You could do:

local tb = --Define TextBox
tb:GetPropertyChangedSignal("Text"):Connect(function()
    local text = the.Text
    --Do stuff
end)

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