For thread safety, this property is not safe to read in an unsynchronized thread.
Forces the client to unfocus the TextBox.
The submitted parameter allows you to over-ride the enterPressed parameter in the FocusLost event.
- This item should be used with a `LocalScript` in order to work as expected in online mode.
The code shown below will force the client to unfocus the 'TextBox' 5 seconds after it's selected:
local TextBox = script.Parent TextBox.Focused:Connect(function() wait(5) TextBox:ReleaseFocus() end)
Please be aware that the above example assumes that it's in a LocalScript, as a child of a TextBox.
The code shown below will force the client to unfocus the ‘TextBox’ 5 seconds after it’s selected: