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

How would I make a part always face another part using CFrame?

Asked by 8 years ago

I'm making a turret, but I can't figure out how to do this and I can't use BodyGyro, can anyone help?

I'M NOT ASKING FOR A FULL SCRIPT, I JUST WANT THE CFRAME

1 answer

Log in to vote
1
Answered by 8 years ago

This is really self explanatory, but the syntax is...

CFrame = CFrame.new(Position, Position)

so if I wanted Part1 to look at Part2 then I would do...

Part1.CFrame = CFrame.new(Part1.CFrame.p, Part2.CFrame.p)
Ad

Answer this question