rconsoleerr Synchronous

  • consoleerr
  • rconsoleerror

Mark a failed operation in the script console with an Error label. It gives the user a visible failure message without changing Luau control flow.

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

Parameters

Function parameters
ParameterTypeDescription
dataanyError value to stringify.
asyncboolean?Optional compatibility boolean; validated but otherwise unused.

Returns

()

No values.

Usage notes

If the caller also needs to stop, raise an error separately.

Example

Example
Luau
rconsoleshow()
local ok, result = pcall(function() return readfile("required-input.txt") end)
if not ok then rconsoleerr(result) end
Kawaii documentation