getproximitypromptduration
Reads the prompt’s HoldDuration in seconds.
Syntax
getproximitypromptduration(prompt: ProximityPrompt) -> number
Parameters
| Parameter | Type | Description |
|---|---|---|
prompt | ProximityPrompt | Prompt to read. |
Returns
| Type | Description |
|---|---|
number | Current 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.
