fireproximityprompt
Invokes a ProximityPrompt's trigger path.
The current implementation accepts the prompt itself; it does not implement a hold-duration argument. Requires a local player and a live prompt.
fireproximityprompt(target: ProximityPrompt): ()Parameters
| Parameter | Type | Description |
|---|---|---|
target | ProximityPrompt | Prompt to trigger. |
Example
local part = Instance.new("Part")
local prompt = Instance.new("ProximityPrompt")
prompt.Parent = part
fireproximityprompt(prompt)
part:Destroy()