ProximityPrompt Support For Multiple Interactions?

Is there any built-in support for multiple interaction options in a ProximityPrompt? For example, if a player was to walk up to a door, is there any built-in support to allow for them to choose between opening/closing the door or locking/unlocking?

The only way I think I could do something like this is maybe customizing the UI but I am pretty sure the functionality of the ProximityPrompt will get in the way at the end of the day.

If something like this isn’t possible through ProximityPrompt, I will likely be creating my own interaction system. Are there any advantages to using ProximityPrompt over any other interaction system that I should consider beforehand though?

1 Like

You could try multiple proximity prompts?

Implementation is native, so it is objectively much faster.

1 Like

I looked into it, and this only really works if you add a UI offset to the ProximityPrompt. Personally speaking I don’t like the look of it enough and it seems like it would be worth creating my own binded to RenderStepped or Heartbeat.

You can actually disable the default UI, by setting the style to custom, and showing a custom UI instead of the default one. You can then make use of the PromptShown and PromptHidden events to show and hide your GUI respectively while taking advantage of the distance checks and input checks being done for you.