AcediaDocumentation

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

ParameterTypeDescription
targetProximityPromptPrompt to trigger.

Example

local part = Instance.new("Part")
local prompt = Instance.new("ProximityPrompt")
prompt.Parent = part
fireproximityprompt(prompt)
part:Destroy()

On this page