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 » Scripters
Home Search
 

Re: How to make one part rotate to face another part?

Previous Thread :: Next Thread 
dispeller is not online. dispeller
Joined: 11 Dec 2016
Total Posts: 332
02 May 2017 09:05 PM
How would I have part A rotate to face part B (as if part A was staring at part B) without actually moving in terms of positions?

Ive experimented with CFrame Angles, but I just end up having a spazzy block.
This is complicated for me, can someone please help?


Report Abuse
Mouse_Potatoe is online. Mouse_Potatoe
Joined: 14 Jul 2011
Total Posts: 1563
02 May 2017 09:07 PM
I don't know, but experiment with surfaces in parts (click the part and scroll down to surfaces and surface inputs)


i want free speech on roblox
Report Abuse
dispeller is not online. dispeller
Joined: 11 Dec 2016
Total Posts: 332
02 May 2017 09:14 PM
surfaces won't help at all.

I'm trying to CFrame here...


Report Abuse
shotaaesthetic is not online. shotaaesthetic
Joined: 11 Oct 2014
Total Posts: 881
02 May 2017 09:30 PM
Has nothing to do with surfaces.
Assuming A and B are their corresponding parts you can make A look at B by doing the following.

A.CFrame = CFrame.new(A.Position, B.Position);
Report Abuse
dispeller is not online. dispeller
Joined: 11 Dec 2016
Total Posts: 332
02 May 2017 09:38 PM
Oh ok cool.
Thank you!

I thought CFrame.new() was only for X,Y, and Z axes numbers.
This rlly helped me out a lot.
Thanks again!


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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