> ## Documentation Index
> Fetch the complete documentation index at: https://docsuncv2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# DrawingImmediate.GetPaint

Returns a rendering event signal that fires every frame at the specified Z-index, allowing immediate drawing operations.

```luau theme={null}
DrawingImmediate.GetPaint(zindex: number): RBXScriptSignal
```

## Parameters

| Parameter | Type     | Description                                                  |
| --------- | -------- | ------------------------------------------------------------ |
| `zindex`  | `number` | The rendering order Z-index. Lower values are painted first. |

## Returns

`RBXScriptSignal` - The paint render event signal.

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  local paint = DrawingImmediate.GetPaint(1)
  paint:Connect(function()
      -- Draw immediate lines/text here
  end)
  ```

  ```luau Example 2 theme={null}
  DrawingImmediate.GetPaint(10):Connect(function()
      -- Top-level HUD drawing
  end)
  ```
</CodeGroup>

<Tip>
  Immediate-mode drawing functions must be called inside the connected callback.
</Tip>
