Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a transparent part where your camera can't go through?

Asked by 5 years ago

I'm making a transparent door and it has a locking button on the other side, but I don't know how to make it so you can't press the button by looking through the other side of the door.

0
I would consider casting a ray from the HumanoidRootPart to the button, checking to see if it collides with anything, and if it does, then decline the request to open the door. Unhumanly 152 — 5y
0
you can't if you use the default camera DeceptiveCaster 3761 — 5y
0
make a custom camera... greatneil80 2647 — 5y
0
or just make it solid or something sean_thecoolman 189 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

I actually found a solution, what I did is I just reduced the distance where the ClickDetector could be activated, so you can't activate it from the other side.

Ad

Answer this question