2 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

Severity

Severity is used in the diagnostics table returned by Script Analysis callbacks registered with ScriptEditorService:RegisterScriptAnalysisCallback(). Each diagnostic entry can include a severity field set to one of these values to control how the diagnostic is categorized in the Script Analysis tool and how the corresponding source range is highlighted in the Script Editor.

The enum maps directly to the Language Server Protocol DiagnosticSeverity specification.

Items

NameValueDescription
Error1Reports a critical error that indicates a definite problem in the script.
Warning2Reports a potential problem that can cause incorrect behavior but does not prevent the script from running.
Information3Conveys informational context about the script without indicating a problem.
Hint4Provides a subtle suggestion, such as a style improvement or an unused-variable notice.

Error

Reports a critical error that indicates a definite problem in the script.

FieldValue
value1

Warning

Reports a potential problem that can cause incorrect behavior but does not prevent the script from running.

FieldValue
value2

Information

Conveys informational context about the script without indicating a problem.

FieldValue
value3

Hint

Provides a subtle suggestion, such as a style improvement or an unused-variable notice.

FieldValue
value4