Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a part face another part or position?

Asked by 7 years ago

I have no idea how to do this, what's the best method of doing so?

1 answer

Log in to vote
2
Answered by 7 years ago
Edited 7 years ago

When called with two Vector3 arguments, the CFrame.new constructor returns a CFrame positioned at the first argument and facing the second argument. This would cause part to retain its position, but face another part otherPart:

part.CFrame = CFrame.new(part.Position, otherPart.Position)
0
Thanks a lot! :-) crabbyninja 58 — 7y
0
Please search for duplicate questions next time, crabbyninja. cabbler 1942 — 7y
Ad

Answer this question