true when the Roblox window has OS focus, false otherwise.
mouse1click and keypress require this to return true to fire.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
true when the Roblox window has OS focus, false otherwise.
iswindowactive(): boolean
mouse1click and keypress require this to return true to fire.
| Type | Description |
|---|---|
boolean | true if the Roblox window is in focus, false otherwise. |
local active = iswindowactive()
print("Game active: ", isrbxactive())