rconsolewarn Synchronous

  • consolewarn

Mark a recoverable problem in the script console with a Warning label. The script continues after the line is written.

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

Parameters

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

Returns

()

No values.

Usage notes

Writing a warning does not raise an error.

Example

Example
Luau
rconsoleshow()
if not isfile("settings.json") then
    rconsolewarn("No saved settings; using defaults")
end
Kawaii documentation