Skip to content

fireproximityprompt

Avoid implementing in Luau

This function should not be implemented in Luau. Doing so exposes you to easy detection vectors.

fireproximityprompt instantly triggers a ProximityPrompt, bypassing its HoldDuration and activation distance.

function fireproximityprompt(prompt: ProximityPrompt): ()

Parameters

Parameter Description
prompt The ProximityPrompt to trigger.

Example

Triggering a ProximityPrompt manually
1
2
3
4
5
6
7
8
9
local part = Instance.new("Part", workspace)
local prompt = Instance.new("ProximityPrompt", part)
prompt.ActionText = "Click Me"

prompt.Triggered:Connect(function(player)
    print(player.Name .. " triggered the prompt")
end)

fireproximityprompt(prompt) -- Output: [YourName] triggered the prompt