Textbox chat system help

  1. The goal I’m trying to achieve is once a user types a message in the text box a remote event is fired after they hit “enter” (Already have this working with a button)

  2. How would I determine if the textbox is being edited? Like for example if the cursor is blinking within it. Is there a property for this?

  3. I looked for solutions but couldn’t find a viable one.

Hard to believe you actually searched because these answers can be found on the Developer Hub with a 5 second search, specifically on the TextBox documentation page.

To check when the text box is being typed into, use GetPropertyChangedSignal(“Text”) on the TextBox. To determine when a player finishes editing a text box either by clicking out or hitting enter, use FocusLost. The parameter will help you determine if enter was pressed to lose focus.

1 Like

Tysm I actually did look there, I must of missed it sorry!