Proximity prompt but for holding

Hi
I was wondering is there a way to make the proximity prompt work with holding. So what I want to achieve is an action happens like closing a window when the player is holding on a proximity prompt for no matter the duration and whenever he releases an action happens e.g. window opens. (like door mechanics in fnaf 4) Is that possible to do or would I have to make my own?

I think the two events I circled will answer your problem assuming you understand how they work.
You could then put on a quick HoldDuration but run the action based on the above events and not whether the prompt was triggered.

Thank you,
SagaciousWizard

1 Like

https://developer.roblox.com/en-us/api-reference/event/ProximityPrompt/PromptButtonHoldBegan
https://developer.roblox.com/en-us/api-reference/event/ProximityPrompt/PromptButtonHoldEnded

Here are the links (you should probably provide them instead of a screenshot in future).