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

# getfpscap

Returns the active frame rate cap.

```luau theme={null}
getfpscap(): number
```

## Returns

`number` - the active FPS limit. <br /> On injection, mirrors Roblox's own setting (commonly set to `240`, but reflects whatever the player has it set to).

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  <<<<<<< HEAD
  local cap = getfpscap()
  =======
  -- getfpscap(): number
  >>>>>>> 50e30f53759b0538759af25c9b271514aa2c9290
  ```

  ```luau Example 2 theme={null}
  print(`current cap: {getfpscap()}`)
  ```
</CodeGroup>

<Tip>
  Default frame rate limit is 60 FPS in Roblox without a cap injector.
</Tip>
