Open Asterune
warn

warn

Writes a warning message to script output.

A function in every script's environment.

Behavior

warn formats its arguments like print and marks the output as a warning. Use it to report recoverable failures or fallback behavior.

Example

Luau
warn("Optional configuration is missing; using defaults")