fireproximityprompt
Triggers a ProximityPrompt as if the local player had completed it.
Syntax
fireproximityprompt(prompt: ProximityPrompt) -> ()
Also available as
fire_proximity_prompt
Parameters
| Parameter | Type | Description |
|---|---|---|
prompt | ProximityPrompt | The prompt to trigger. |
Description
The trigger is reported to the server, so Triggered runs on server scripts with the local player.
Example
local prompt = workspace.Door.ProximityPrompt
fireproximityprompt(prompt)
Notes
- The server still checks the prompt's
MaxActivationDistanceandEnabled.
These are Game executor contracts. Check build requirements and session lifetimes before using them.
