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

# fireproximityprompt

Triggers a `ProximityPrompt`, bypassing its `HoldDuration` and activation distance.

```luau theme={null}
fireproximityprompt(prompt: ProximityPrompt): ()
```

The prompt's `.Triggered` event fires with the local player, as if they had held the prompt to completion.

## Parameters

| Parameter | Type              | Description            |
| --------- | ----------------- | ---------------------- |
| `prompt`  | `ProximityPrompt` | The prompt to trigger. |

## Returns

<code title="the function does not return a value.">void</code>

## Example

In Doors, skip holding E on every door. Fire each prompt the moment it appears.

<CodeGroup>
  ```luau Example 1 theme={null}
  <<<<<<< HEAD
  fireproximityprompt(workspace.Part.ProximityPrompt)
  =======
  -- fireproximityprompt(prompt: ProximityPrompt): ()
  >>>>>>> 50e30f53759b0538759af25c9b271514aa2c9290
  ```

  ```luau Example 2 theme={null}
  local ProximityPromptService = cloneref(game:GetService('ProximityPromptService'))

  -- PromptShown fires once you're in range, so every prompt here is valid to trigger
  ProximityPromptService.PromptShown:Connect(function(prompt)
      fireproximityprompt(prompt)
  end)
  ```
</CodeGroup>

<Tip>
  Bypasses standard client hold times and distances, triggering the prompt instantly.
</Tip>
