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

How to make this rotate towards a object?

Asked by 6 years ago

I know that you can use :SetPrimaryPartCFrame() on a model and rotate it.

My issue is that how can I rotate it towards something like a part? For example a part that will always face another part?

I also want it to be compatible so that if the other part moves or rotates, it updates our given part's rotation or position.

The only thing I can bring up about making it face a certain part in a idea is:

CFrame.lookVector

If anyone could help me, that'd be appreciated!

Answer this question