Yes i know theres plenty of tutorials on how to make one. But the issue is those use Viewport Frames. I want to make clones of the parts infront of the mirror, and put them on the other side. Issue is im now sure how to invert a CFrame to where left, right, up, and down are the same, but forward and backwards is the opposite. Any help?
you can just put a - infront of the value this will invert it
so let’s say you have the Original CFrame local originalCFrame = part.CFrame you can just do local mirroredvalue = -originalCFrame.LookVector
This will store an inverted value inside of “mirroredvalue” that you can then use for the new CFrame
wouldnt this invert everything? even the up down left and right?
you have the original values stored inside of the originalCFrame variable so you could do something like
local originalCFrame = part.CFrame
local right = originalCFrame.RightVector
local mirrored = -originalCFrame.LookVector
local mirroredCFrame = CFrame.fromMatrix(right, mirrored)
This way “right” will be the original value and “mirror” will be an inverted value
ok, ill try that in a bit. Thanks for the help
I don’t think it’s possible with CFrames. The only thing you can do with a CFrame is rotating and moving it. Moving doesn’t contribute to the mirroring(except putting the part to the correct position inside the mirror) and no matter how you rotate something, it will never completely mirror it.
Here is a visualisation:
Let’s say you want to mirror this(The yellow color is the top, pink the bottom, green the right, light blue the left and dark blue the front side):

If you rotated it you’d get this(Just for clarification, the letters are oriented so that they can be read normally when viewing the side they’re on which means that the B should be flipped so that it looks like it was written from right to left):
But in the mirror it should actually look like this:
When rotating, the green and the cyan side are switched and the B isn’t oriented correctly. This shouldn’t be the case.
You could technically still manage to make a mirror using a clone of the part but you would either need to create a mirrored version of every part that you mirror in advance or the perspective the part is seen from has to be symmetrical(Which means that if a part is supposed to be able to be rotated so that every side can face the mirror opposing sides have to exactly have the same color/texture and the color/texture has to be symmetrical along a vertical line going trough the middle)

