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
 

How do I make a block rotate to look at another block?

Previous Thread :: Next Thread 
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
10 Dec 2013 12:52 PM
I have this block and I want the front of it to face the other block no matter where it is. How would I do this?
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
10 Dec 2013 12:52 PM
Im not looking for a script just what I would need.
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
10 Dec 2013 12:59 PM
Lookvector.
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
10 Dec 2013 01:04 PM
so would it be like


PART.CFrame = PART1.lookVector

Or how would I use it. I totaly forgot over the past three months of non roblox things.
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
10 Dec 2013 01:08 PM
DAMNIT!!! I accidently closed it and it dident ask me if I was sure I wanted to close it..
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
10 Dec 2013 01:17 PM
I still need help.
Report Abuse
CommanderCornbread is not online. CommanderCornbread
Joined: 14 Dec 2009
Total Posts: 73
10 Dec 2013 01:46 PM
Use this format;

pt1 = Workspace.Part1
pt2 = Workspace.Part2

pt1.CFrame = CFrame.new(pt1.Position, pt2.Position)
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