Syntax
isrbxactive(): booleanAliases
isgameactiveiswindowactiveReturns
| Name | Type | Description |
|---|---|---|
active | boolean | True when Roblox is focused. |
Description
Returns whether the Roblox window is currently focused and accepting input.
Call it without parameters. The function reads the needed context from the current runtime state.
It returns active (boolean). Use the returns table to separate successful values from nil results and recoverable errors.
Example
Example call with placeholder values.
local result = isrbxactive()
print(result)