> ## 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.

# getfflag

Reads the current value of a Roblox Fast Flag.

```luau theme={null}
getfflag(name: string): any
```

Pass the flag's literal name, without a prefix (e.g. `"EnablePreloading"`, not `"DFFlagEnablePreloading"`).

Flag names follow one of six type prefixes: `FFlag` / `DFFlag` (booleans), `FInt` / `DFInt` (integers), `FString` / `DFString` (strings). The leading `D` marks dynamic flags, which refresh at runtime; the rest lock at session start.

## Parameters

| Parameter | Type     | Description |
| --------- | -------- | ----------- |
| `name`    | `string` | Flag name.  |

## Returns

Return type tracks the flag's declared type:

| Flag prefix             | Returns   |
| ----------------------- | --------- |
| `FFlag` or `DFFlag`     | `boolean` |
| `FInt` or `DFInt`       | `number`  |
| `FString` or `DFString` | `string`  |

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  <<<<<<< HEAD
  local getfflag = getfflag("test")
  =======
  -- getfflag(name: string): any
  >>>>>>> 50e30f53759b0538759af25c9b271514aa2c9290
  ```

  ```luau Example 2 theme={null}
  local preloading = getfflag("EnablePreloading")
  print(`EnablePreloading = {preloading}`)
  ```
</CodeGroup>

<Tip>
  Roblox configuration Fast Flags control various engine properties.
</Tip>
