Need help with Proximity Prompt

Hi, I am wondering if there is any way to detect if a player is using a Proximity Prompt. I know that you can use the triggered event when they finish holding, but how can I make a function that will run whilst the player is triggering the prompt?

1 Like
ProximityPrompt.PromptButtonHoldBegan:Connect(function()
      --your code here!
end)
ProximityPrompt.PromptButtonHoldEnded:Connect(function()
      --your code here!
end)
1 Like

For the line with “PromptButtonHoldEnded”, is that when the hold wasn’t finished or when the hold got completed?

That event fires when the prompt holding stops.

(also works like triggered, but not as good as triggered) --when they finish holding, is what i mean. but you should use .Triggered for that

holy hell i suck at explaining

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.