ProximityPrompt, bypassing its HoldDuration and activation distance.
.Triggered event fires with the local player, as if they had held the prompt to completion.
Parameters
Returns
void
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ProximityPrompt, bypassing its HoldDuration and activation distance.
fireproximityprompt(prompt: ProximityPrompt): ()
.Triggered event fires with the local player, as if they had held the prompt to completion.
| Parameter | Type | Description |
|---|---|---|
prompt | ProximityPrompt | The prompt to trigger. |
void
fireproximityprompt(workspace.Part.ProximityPrompt)
local ProximityPromptService = cloneref(game:GetService('ProximityPromptService'))
-- PromptShown fires once you're in range, so every prompt here is valid to trigger
ProximityPromptService.PromptShown:Connect(function(prompt)
fireproximityprompt(prompt)
end)