iswindowactive
Whether this process owns the foreground window.
Syntax
iswindowactive() -> boolean
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
boolean | The boolean result of the check. |
Description
iswindowactive is part of the Input library. Input helpers either read the current OS input state or synthesize OS-level events. Some game interactions also require the Roblox window to be focused.
The call is a predicate: it inspects the current state and returns a boolean without modifying anything.
Example
print(iswindowactive())
Notes
- Synthetic input may be ignored by games that validate input origins.