The information on this page may no longer be accurate. To see the latest, go to our new and improved documentation. You can also learn more about the future of documentation.
Collapse Sidebar


WindowFocusReleased fires immediately when the user stops interacting with the PluginGui’s window, usually by clicking on on something not in the window. This functions works similarly to the similarly-named UserInputService/WindowFocusReleased event.

If focus is moving to another PluginGui while the user had this PluginGui in focus, then this event fires before the other’s PluginGui/WindowFocused|WindowFocused event. However, if the main game window is being put in focus, this event fires after UserInputService/WindowFocused.

Code Samples

Detecting PluginGui Focus State

This code sample demonstrates how the focus state of a PluginGui can be tracked using the PluginGui/WindowFocused|WindowFocused and PluginGui/WindowFocusReleased|WindowFocusReleased events. It changes the PluginGui/Title|Title as the focus state changes.