Problem with clickable objects

Hello, I have been trying to solve this issue for several weeks. Basically, I am trying to be able to click objects with a click detector when clicking it from any distance where a large brick blocks the clickable brick.

The problem I am having is that when I try to click a brick with a click detector with a large brick on the way it just won’t work. If you’r still confused on what I mean, here is some video footage to visualize my problem…


Now hopefully you now know what I am talking about. (The transparent wall in the other footage is a wall-like brick by the way)

I tried to find solutions trough google searches, but I found no luck.

If you wan’t more details, then don’t hesitate to ask me, as long as I can get the help I need.

*EDIT - The second footage shows my problem, the first footage is to provide context.

One question: Why would there be a wall between what you want the players to be able to access?

I could be wrong, but I am 90% sure that the wall obstructing your ability to click the part with the click detector is intentional.

Your mouse hovers over the first thing that it is “touching”, so the mouse will not click on something that is not immediately in its path.

1 Like

If you’re okay with using something other than ClickDetectors, you could create a raycast from the player to their mouse location that is set to ignore whatever you consider a ‘wall’.

2 Likes

I’m making the reply, just hold on…

I am making a game, in the game you move some parts and the parts fly off a bit without anything on top to guard it, I tried to add a thin long brick on top of it but even that can’t help without the moving parts fidgeting. I’m pretty bad at explaining things so here’s a quick image to show the parts I was talking about

As you can see, It’s a military game, so yeah.
I didn’t want at first to provide context because I was quite shy about my upcoming game and already expected you to understand my problem. I’m sorry for the inconvenience and if you have anymore questions don’t be afraid to ask.

I made the wrong reply. But thanks for your proposed solution but I don’t think that fixes my problem. I’m very sorry.