Returns true when the Roblox window has OS focus, false otherwise.
The window is “active” when Roblox holds your operating system’s focus.
Input functions like mouse1click and keypress require this to return true to fire.
Returns
Example
Use this check to avoid sending keystrokes or mouse clicks when the game window is minimized.