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

# fireproximityprompt

> Kich hoat ProximityPrompt thong qua ProximityPrompt trigger cua Real. Doi so prompt phai la object co truong ClassName bang "ProximityPrompt". Neu gia tri khong phai object, loi goi tao type error. Neu ClassName bi thieu hoac khong phai string, no tao "Invalid Instance". Neu ClassName khong phai "ProximityPrompt", no tao "ProximityPrompt expected". Function khong nhan optional arguments va khong tra ve gi.

<div className="real-function-page">
  ```lua theme={null}
  fireproximityprompt(prompt: Instance)
  ```

  ## Đối số

  <ParamField path={"prompt"} type={"Instance"} required>
    Instance co ClassName phai la ProximityPrompt.
  </ParamField>

  ## Ví dụ

  Kich hoat ProximityPrompt voi doi so bat buoc duy nhat.

  ```lua theme={null}
  local prompt = workspace.InteractivePart.ProximityPrompt

  fireproximityprompt(prompt)
  ```
</div>
