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
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
I am not to sure Exactly how to do this but this may help. http://wiki.roblox.com/index.php?title=API:Class/BodyAngularVelocity
Use a body gyro to make it face the other part, and use the cframe answer that Vingam_Securis typed
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
Do you know how to use CFrames yet?
I know how to cframe locations and stuff but not rotation
http://wiki.roblox.com/index.php?title=CFrame#Rotating_bricks
CFrame.new(Vector3 pos, Vector3 lookat); Example: CFrame.new(Part.Position, OtherPart.Position)
Thanks