The TextBoxFocusReleased event fires when a client loses focus on a TextBox - typically when a client stops text entry into a TextBox by pressing return or clicking/touching elsewhere on the screen.
For example, the code below prints the the name of the TextBox losing focus when the event fires.
local UserInputService = game:GetService("UserInputService") function TextBoxFocusReleased(textbox) print(textbox.Name) end UserInputService.TextBoxFocusReleased:Connect(TextBoxFocusReleased)
It can be used alongside
UserInputService/TextBoxFocused to track when a TextBox gains and loses focus.
As this event only fires locally, it can only be used in a
This example prints the "The name of the released focus TextBox is " followed by the name of the TextBox which is released from focus when a client escapes text entry for a TextBox, usually by clicking/tapping elsewhere on the screen.
local UserInputService = game:GetService("UserInputService") UserInputService.TextBoxFocusReleased:Connect(function(textbox) print("The name of the released focus TextBox is "..textbox.Name) end)