Returns the hold duration of a ProximityPrompt. When the value cannot be read it returns 0 rather than erroring, so a 0 can mean either an instant prompt or an unreadable one.

Parameters

Instance
required
A ProximityPrompt.

Returns

number
The hold duration in seconds.

Example

Errors