Rotate Model Relative To Part

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I need a model to be rotated to face the opposite direction to the part it is being aligned to


The arrows in the top part are the directions the cubes are facing. The PrimaryPart is the cube and the model is the cube+platform.
I need the platforms to align to each other facing opposite directions.

  1. What is the issue? Include screenshots / videos if possible!
    I don’t know how to do this and am unable to find any information on how to do this.

  2. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have searched a lot of things and tried lots of things, but non of them seem to work.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

-- This is an example Lua code block

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

Set a primarypart in the model (that will be the part the model rotates to), then do

(model):SetPrimaryPartCFrame( (model).PrimaryPart.CFrame * (model).PrimaryPart.CFrame )

Replace all the “(models)” with the path to the model.

The main problem is setting Part A CFrame to Part B CFrame but facing the opposite direction.