Skip to content
Signals & connectionsOverview

fireproximityprompt

Represents activation of a proximity interaction.

Details#

Requests a proximity-prompt interaction for the supplied ProximityPrompt. This differs from changing HoldDuration; acceptance depends on runtime and interaction context. The example uses an unparented local prompt and handles unsupported execution.

Examples#

Example

Luau
local prompt = Instance.new("ProximityPrompt")
local ok, err = pcall(fireproximityprompt, prompt)
print(ok, err)
prompt:Destroy()