Console

rconsoleinput

Waits for text input from the console and returns the submitted line.

Syntax

rconsoleinput(): string
Aliases consoleinput

Returns

NameTypeDescription
inputstringLine of text read from the console.

Description

Waits for text input from the console and returns the submitted line.

Call it without parameters. The function reads the needed context from the current runtime state.

It returns input (string). Use the returns table to separate successful values from nil results and recoverable errors.

Example

Example call with placeholder values.

local result = rconsoleinput()
print(result)