PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

TriggerEnded

This event is triggered when the ProximityPrompt/KeyboardKeyCode|key/button is released, for longer events where the user is required to hold down the button (e.g. heal another player over time.)

Parameters

Name Type Default Description

The Player who released the key/button, ending the trigger event


Code Samples


Generating a Custom Proximity Prompt

The example below generates a custom ProximityPrompt UI similar to the default style, which you may use as a starting point. It should be used in a LocalScript.


Healing Proximity Prompt

The example below illustrates a prompt that requires the user to hold the button down in order to heal their character. This should be used in a Script that is a child of a ProximityPrompt.