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

How do i, through a script, rotate a part to face a other part?

Asked by 7 years ago

Simply want to know the basic concept of how to through a script find the correct rotation so its top or front would face a other part.

Thanks :D

0
Do you know how to use CFrames yet? GoldenPhysics 474 — 7y
0
I know how to cframe locations and stuff but not rotation y0ucef123 72 — 7y
0
CFrame.new(Vector3 pos, Vector3 lookat); Example: CFrame.new(Part.Position, OtherPart.Position) Vingam_Securis 213 — 7y
0
Thanks y0ucef123 72 — 7y

2 answers

Log in to vote
0
Answered by
alsome495 -21
7 years ago

I am not to sure Exactly how to do this but this may help. http://wiki.roblox.com/index.php?title=API:Class/BodyAngularVelocity

Ad
Log in to vote
0
Answered by 7 years ago

Use a body gyro to make it face the other part, and use the cframe answer that Vingam_Securis typed

Answer this question