I have used lookVector before, mostly with guns. For example,
--stuff above
bullet.CFrame = CFrame.new(tool.Handle.CFrame.p ,mouse.Hit.p)
bullet.Velocity = bullet.CFrame.lookVector * speed
--stuff below
I have also made sliding doors before. It's pretty easy to do with a for loop and CFrame.
for i = 1,20 do
door1.CFrame = door1.CFrame * CFrame.new(0.5,0,0)
door2.CFrame = door2.CFrame * CFrame.new(-0.5,0,0)
wait(0.5)
end
However, I do not know how to combine these things. I'm trying to make a model which lets users place two doors on any coordinate plane they want, and the doors will still move towards each other. This is not possible with the method I used before, because it either moves the doors on a x or z plane. I want to know how to make the doors move towards their lookVector, without worrying about what coordinate plane they are on.

1 comment
Dang, I should have figured that out myself. Thanks for the help!