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?
1 Like
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
1 Like