rconsoleprint Synchronous
consoleprintconsolewriterconsolewrite
Write a plain line to the script console. It converts the supplied value to text, making it useful for ordinary progress messages and quick inspection.
Luau
rconsoleprint(data: any, async: boolean?, escape: boolean?) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
data | any | Value to stringify and print. |
async | boolean? | Optional boolean accepted for compatibility; it does not make the call yield. |
escape | boolean? | Optional boolean. false truncates the displayed text at the first NUL byte; otherwise NUL is shown visibly. |
Returns
()No values.
Usage notes
The console escapes rich-text characters in data. Color tokens such as @@YELLOW@@ can change later plain-line color.
Example
Luau
rconsoleshow()
rconsoleprint("Imported 3 files")
rconsoleprint("@@YELLOW@@Please review the warnings")