---
name: AutoIndentRule
last_updated: 2026-10-20T17:35:17Z
type: enum
summary: "Specifies how Roblox Studio automatically indents lines in the script editor."
---

# AutoIndentRule

Specifies how Roblox Studio automatically indents lines in the script editor.

**Type:** enum

## Description

Controls the behavior selected by the **Auto Indent Rule** Studio setting.

## Items

| Name | Value | Description |
|------|-------|-------------|
| `Off` | 0 | Disables automatic indentation. |
| `Absolute` | 1 | Indents new lines according to the script's block structure. |
| `Relative` | 2 | Indents new lines according to the script's block structure and the indentation of the reference line. |