rconsolewarn Synchronous
consolewarn
Mark a recoverable problem in the script console with a Warning label. The script continues after the line is written.
Luau
rconsolewarn(data: any, async: boolean?) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
data | any | Warning value to stringify. |
async | boolean? | Optional compatibility boolean; validated but otherwise unused. |
Returns
()No values.
Usage notes
Writing a warning does not raise an error.
Example
Luau
rconsoleshow()
if not isfile("settings.json") then
rconsolewarn("No saved settings; using defaults")
end