Input

isrbxactive

Returns whether the Roblox window is currently focused and accepting input.

Syntax

isrbxactive(): boolean
Aliases isgameactiveiswindowactive

Returns

NameTypeDescription
activebooleanTrue 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)