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
** You are now Level 4! **