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?

Asked by 5 years ago

I've recently been trying to create a script that'll make one part face another indefinitely. When i have been looking for an answer for this question the most popular answer seems to be a bit like this:

part1.CFrame = CFrame.new(part1.Position, part2.Positon)

But it doesn't seem to work anymore. Then i tried using math.atan2 to solve my problems but it heavily lags the game trying to do it atleast 10 times per second.

Is there any simple solutions that i've missed?

Answer this question