Roblox Wiki
Advertisement
Roblox Wiki

The ProximityPromptService class inherits from Instance. This class was added in version 0.454.

Properties

Pubfield.gif bool Enabled

When false, no prompts will be shown.

  • Category: Data.
  • Serialization: can save and load.

Pubfield.gif int MaxPromptsVisible

The maximum number of ProximityPrompts that will be shown.

  • Category: Data.
  • Serialization: can save and load.

Events

Pubevent.gif PromptButtonHoldBegan(ProximityPrompt prompt, Player playerWhoTriggered)

Fired in local scripts when the user begins holding down the button on a prompt with a non-zero HoldDuration. This can be used to animate a progress bar.

Pubevent.gif PromptButtonHoldEnded(ProximityPrompt prompt, Player playerWhoTriggered)

Fired in local scripts when the user ends holding down the button on a prompt with a non-zero HoldDuration. This can be used to animate a progress bar.

Pubevent.gif PromptHidden(ProximityPrompt prompt)

Fired in local scripts when a prompt is hidden. Can be used for customization.

Pubevent.gif PromptShown(ProximityPrompt prompt, ProximityPromptInputType inputType)

Fired in local scripts when a prompt is shown. Can be used for customization.

Pubevent.gif PromptTriggerEnded(ProximityPrompt prompt, Player playerWhoTriggered)

Pubevent.gif PromptTriggered(ProximityPrompt prompt, Player playerWhoTriggered)

External links

Advertisement