Proximity Prompts triggered via the E button, rest require click

I’m wondering how to have multiple prompts on screen, but only having 1 button triggered by the E button, rest buttons require click. (Depends of how close you are to the button)

I’m using this model: https://create.roblox.com/marketplace/asset/8370062439/Proximity-Prompt-Customizer%3Fkeyword=&pageNumber=&pagePosition=

How I want it to be:
image

im not sure what type of library u are using for this but a simple approach would be getting the magnitude distance from each prompt in a array and sorting it to get the shortest distance possible.

1 Like

I think Adopt Me has custom made proximity prompts, and the closest one in keybinded while the others just show up and register clicks only, if I’m not misremembering Adopt Me has had these proximity prompts before Roblox added proximity prompt service

to make it very simple just make multiple seats with proximity prompts and make them invisible and place them the way you want in your log model or anything

I Did that, and there are 2 E Buttons, I Want to have a way to change one button to click button instead of 2 E buttons, that what it shows for me

image

you can make the closest to be the keybind prompt, and the rest; set them to a click prompt

How can I do that?

–ignore, it’s because the 30 letters

first, you need to get all the visible prompts; and get the closest of them all using .Magnitude and make the closest to be the keybind, and the rest to be a click

pseudocode:

visiblePrompts = getVisiblePrompts()
closestPrompt = getClosestPrompt(visiblePrompts)

setPromptStyle(closestPrompt, "keybind")

for _, prompt in visiblePrompts do
   if prompt == closestPrompt then continue end
   setPromptStyle(prompt, "click")
end