rconsolehidden Synchronous

Find out whether the script console is currently hidden. Check it before starting a prompt so the user can actually see where to type.

Syntax
Luau
rconsolehidden() -> boolean

Parameters

This function takes no arguments.

Returns

boolean

true when hidden; false when visible.

Usage notes

A missing or destroyed console UI also counts as hidden.

Example

Example
Luau
if rconsolehidden() then rconsoleshow() end
rconsoleprint("The console is visible now")
Kawaii documentation