How to make a part go opposite of another

I want to make 2 parts move like this:

If one goes up, the other goes down

If that same one goes down, the other goes up

Use a CFrame position

Hello there!

You can make a value, then adjust the part CFrame (or position) .Y

local Value

--SP = Start Position

local SP1 = Vector3.new(0, 1, 0)

local SP2 = Vecror3.nee(3, 1, 0)

Part1.Position = SP1 + Vector3.new(0, Value, 0)

Part2.Position = SP2 + Vector3.new(0, -Value, 0)

Hope it helps :wink:

1 Like