Still typing in TextBox when FocusLost?

I have a TextBox for a chat GUI which players can type messages into, I have a function for when Focus Lost however the player is still typing when it fires. I have tried :ReleaseFocus() as well but it won’t work.

	Typing = false
	TextBox.Parent:TweenSize(,0,0,0), Enum.EasingDirection.In, Enum.EasingStyle.Back, 0.5, false, function()
		TextBox.Parent.Visible = false

.FocusLost fires when either the player clicks out of the they hit enter (or, of course, the script manually does it). I’m a little confused with what you’re trying to say, but it sounds like you’re saying that it is firing at times where it seemingly isn’t supposed to happen. Make sure there isn’t some other script that is making the textbox lose focus at these random times.

When I press enter, it still fires and shrinks the textbox but I am still typing in it and can’t move unless I manually click somewhere on the screen.

Pressing enter is supposed to make it fire. You shouldn’t press enter if you’re still typing, obviously.