Yuari
Documentation
Docs/Instances/fireproximityprompt

fireproximityprompt

Forces a ProximityPrompt to begin and complete immediately, bypassing hold time and activation distance.

Syntax

fireproximityprompt(prompt: ProximityPrompt) -> nil

Parameters

ParameterTypeDescription
promptProximityPromptThe prompt to fire.

Returns

No return value.

Description

The VM temporarily sets the prompt's MaxActivationDistance, HoldDuration, Enabled and RequiresLineOfSight fields, then invokes the engine's hold begin/end path so the prompt completes without waiting or approaching it.

If the engine path fails, it falls back to briefly moving the parent part to the character and simulating the interaction key. All modified fields and the part position are restored afterwards.

Example

local doorPrompt = workspace.Door.ProximityPrompt
fireproximityprompt(doorPrompt)

Notes

  • Bypasses the hold duration and activation distance; no proximity or hold is required.
  • The engine hold path is tried first; the fallback may briefly relocate the prompt's parent part.
  • Requires Hybrid Luau and a focused Roblox window.