ReferenceInstances

fireproximityprompt

Triggers a ProximityPrompt as if the local player had completed it.

Syntax

fireproximityprompt(prompt: ProximityPrompt) -> ()

Also available as

fire_proximity_prompt

Parameters

ParameterTypeDescription
promptProximityPromptThe 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

These are Game executor contracts. Check build requirements and session lifetimes before using them.