ReferenceInstances

getproximitypromptduration

Reads the prompt’s HoldDuration in seconds.

Syntax

getproximitypromptduration(prompt: ProximityPrompt) -> number

Parameters

ParameterTypeDescription
promptProximityPromptPrompt to read.

Returns

TypeDescription
numberCurrent hold duration in seconds.

Description

This returns the actual current property, not elapsed input-hold time. Use setproximitypromptduration to change the local value.

Example

local prompt = Instance.new("ProximityPrompt")
print(getproximitypromptduration(prompt))
prompt:Destroy()

These are Game executor contracts. Check build requirements and session lifetimes before using them.