Instances

fireproximityprompt

Triggers a ProximityPrompt instance as if the prompt was completed.

Syntax

fireproximityprompt(prompt: Instance)

Arguments

NameTypeDescription
promptInstanceProximityPrompt instance to trigger.

Description

Triggers a ProximityPrompt instance as if the prompt was completed.

Call it with 1 parameter(s): prompt. The argument table explains which values are required and which ones only refine the behavior.

It does not return data. Treat the call as an action and handle errors around the call site when needed.

Example

Complete a ProximityPrompt interaction.

local prompt = workspace.InteractivePart.ProximityPrompt

fireproximityprompt(prompt)