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
 

Re: How to point a brick at a certain position

Previous Thread :: Next Thread 
CrushingPower is not online. CrushingPower
Joined: 23 Oct 2013
Total Posts: 2497
05 Dec 2013 05:59 PM
How do you point a brick at certain position, without moving the position of the brick?

I'm talking basically rotating the brick so that the front end is facing the designated position, but without using the rotation property in it.
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
05 Dec 2013 06:07 PM
CFrame.new(Vector3.new(pos),Vector3.new(point))
Report Abuse
CrushingPower is not online. CrushingPower
Joined: 23 Oct 2013
Total Posts: 2497
05 Dec 2013 07:33 PM
I have it as

script.Parent.CFrame = CFrame.new(Vector3.new(script.Parent.Position),Vector3.new(workspace.LookToPart.Position))

LookToPart is the part I want the part to "look at"

The problem is that it sticks the part at:
0, -340282346638528859811704183484516925440, 0
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
05 Dec 2013 08:28 PM
Make sure the Part is Anchored.
Report Abuse
CrushingPower is not online. CrushingPower
Joined: 23 Oct 2013
Total Posts: 2497
06 Dec 2013 05:07 AM
It is,
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