#how can i replicate something like this

1 messages · Page 1 of 1 (latest)

untold nacelle
#

I am using doors as an example, but many games do this. Basically, what i want to do is that when I get near a part, it shows that I can click it, and it allows me to interact with only one part at a time. my idea is to calculate the player's distance from the part and then check if the part is on the player's screen, only then can the player interact. the problem is how can I make it so that the player can interact with only one part at a time?
As you can see, the hand icon, which represents what I can click, constantly switches from one part to another.
I hope you guys understand what I mean. https://streamable.com/8hqdg4

Watch "Desktop 2025.05.23 - 17.01.27.04" on Streamable.

▶ Play video
deft basalt
#

in the video you showed

#

I'm pretty sure door find the closes drawer to the camera, and allows you to open it

#

you can do tweens for the acutall opening animation

untold nacelle
#

cause

#

when i move the camera it changes target

#

ill try do something like that if someone has suggestions its appreciated

crimson stirrup
#

but for this specific case i wouldnt do that. i would do for pc where they are pointing. and then for mobile whichever one they tap on. so this is actually fairly simple.

crimson stirrup
untold nacelle
#

i currently have all my clickable parts working with clickdetector, and if i want them to be pressed by a key i should make an event and change a lot of scripts. Idk if it is worth it cause im not that good at scripting, i can get a good result but it will take a lot of time

proven pelican
#

You could try to use proximityprompt, you can change the design of the prompt as well. You can make them not all pop up at the same time, from what I remember which would save a loop.

compact houndBOT
#

studio** You are now Level 4! **studio

proven pelican
#

Using the exclusivity property on the proximityprompt

broken geyser
#

I personally would have just used raycasts but if proximity prompt works better then ig so

untold nacelle
#

i just need to disable the proximity prompt effect