Part That You Can't See Through

So I want to make a window that you can’t look through. I’ve tried making a part inside the window with a transparency of 0.05 while being on the glass material and in-studio it did work but when I tested the game the part inside was still visible


image How Do I fix this or are there any better methods?

2 Likes

Wouldn’t a window that you can’t look through just be a wall? Maybe I don’t understand what you are trying to do.

I want a transparent window and not a wall if that clears things up.

Oh I see now, well you could set the transparency to 1. Setting it to 0.05 won’t do anything, closer to 1 it is the more transparent it will be.

I’m not sure you understand what I want. I’m making an enclosed area with windows that want you to be able to look inside of but not put your camera through. With the transparency as 1 you can still manipulate your camera to look outside the window.

Oh, when the transparency is 0 can you put your camera through?

No when the transparency is 0 you can not put your camera through but you also can’t see outside it.

Then maybe try seeing where the cut off is where the camera can’t go through it. Try setting the transparency to 0.99 and see if that works.

It works well as a window but your camera can still go through

An example of what exactly I want could be found on a game called iron cafe. Inside this cafe in the area where the food is prepared the room has windows. You can’t put your camera inside to steal the food there but you can see inside.

Yeah i don’t know I’m sorry. I’ll play around with it and I’ll let you know if I figure it out.

Looks like .24 is the most transparent that it blocks the camera.

1 Like

Thanks for trying to solve it!

1 Like

If you go into PlayerScripts when you test the game, there is a camera module. I’m trying to figure out if that could help solve the problem. If you want you can play around wiht that. Also I gtg but I can help later, good luck !

I found a solution. Get a part and don’t change the transparency. Add a specialmesh inside and change the MeshType to File mesh. Change the scale of the mesh to 0,0,0. It should work now, I found it in a youtube tutorial but I had to change it up a bit

4 Likes

This worked perfectly! Thank you!

You can also change the reflectancy to 1. It will look like the skybox but it isn’t actually clear.

I find that even at reflectancy 1 it appears different than the sky, but thank you.