Skip to content
ConsoleReference

rconsoleinput

Read one line from the native console.

Aliasesconsoleinput

Details#

Read one line from the native console. Input without trailing CR/LF, up to the 4095-byte input buffer. Console initialization failure returns an empty string.

Signature#

Luau
rconsoleinput(): string

Returns#

Input without trailing CR/LF, up to the 4095-byte input buffer. Console initialization failure returns an empty string.

Examples#

Local example

Luau
rconsoleprint("Enter a local label:")
local label = rconsoleinput()
rconsoleprint(label)