rconsoleprint Synchronous

  • consoleprint
  • consolewrite
  • rconsolewrite

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.

Syntax
Luau
rconsoleprint(data: any, async: boolean?, escape: boolean?) -> ()

Parameters

Function parameters
ParameterTypeDescription
dataanyValue to stringify and print.
asyncboolean?Optional boolean accepted for compatibility; it does not make the call yield.
escapeboolean?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

Example
Luau
rconsoleshow()
rconsoleprint("Imported 3 files")
rconsoleprint("@@YELLOW@@Please review the warnings")
Kawaii documentation