how can i copy a cframe but make it go in the opposite direction? Like how a mirror would work.
There is probably a better way to do this but you could just rotate the frame 180 degrees
local cframe = CFrame.new(1,1,1)
cframe.Rotation *= CFrame.new(0,180,0)
What exactly are you trying to make maybe we can help you better when we know that part
Can’t you just do a minus? If you want to do it relative to an object you can use ToObjectSpace.
local Cframe = CFrame.new(1,1,1) -- your cframe
local mirroredCframe = -Cframe -- mirror it
basically i have a replay script that replays the player’s movements. I am going to make an NPC mimic the movements. I need the npc to be facing towards the player, so all the arm movements to go in the opposite direction and rotation of the arm.
(like a mirror)
2 Likes
You should use :Inverse(). That worked for me