Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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.

4 comments

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.

0

you can't if you use the default camera

0

make a custom camera...

0

or just make it solid or something

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.