generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Make Facing

Previous Thread :: Next Thread 
Boopbot is not online. Boopbot
Joined: 11 Jul 2008
Total Posts: 2284
05 Mar 2012 04:30 PM
How can you make an object face another object? Like the front of one objects turns to the direction of another object.
Report Abuse
Boopbot is not online. Boopbot
Joined: 11 Jul 2008
Total Posts: 2284
05 Mar 2012 04:42 PM
Come on.
Report Abuse
07lchris is not online. 07lchris
Joined: 28 Feb 2010
Total Posts: 1603
05 Mar 2012 04:46 PM
What? CFrame rotation?

obj1.CFrame = CFrame.new(x,y,z) * CFrame.Angles(x,y,z)

Report Abuse
Boopbot is not online. Boopbot
Joined: 11 Jul 2008
Total Posts: 2284
05 Mar 2012 04:49 PM
Ugh, does no one know? I've seen it before.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
05 Mar 2012 04:52 PM
obj.CFrame=CFrame.new(obj.Position,obj2.Position)

"Bro five! Wear this to let everyone know you think they deserve a high five."
Report Abuse
07lchris is not online. 07lchris
Joined: 28 Feb 2010
Total Posts: 1603
05 Mar 2012 04:52 PM
Know-one can help if you are as vague as you are. If you explained clearer we might be able to help, and even so; you're not supposed to request on this forum. Why not have a go first?
Report Abuse
07lchris is not online. 07lchris
Joined: 28 Feb 2010
Total Posts: 1603
05 Mar 2012 04:56 PM
@nate, it's

obj.CFrame = CFrame.new(Vector3 position, Vector3 point)
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
05 Mar 2012 04:57 PM
Shush

"Bro five! Wear this to let everyone know you think they deserve a high five."
Report Abuse
Boopbot is not online. Boopbot
Joined: 11 Jul 2008
Total Posts: 2284
05 Mar 2012 04:58 PM
Thanks nate. Now, is there a way to make it so it only uses the x and z value, and if the two objects were on different y values, they would only face each other on the x,z plane, and wouldn't face up/down.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image