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 » Game Design
Home Search
 

CFrame pointing at another?

Previous Thread :: Next Thread 
TheDodosaurus is not online. TheDodosaurus
Joined: 02 Apr 2016
Total Posts: 9
07 Aug 2016 06:46 AM
(Title)

If i have two blocks, one as a tool, another as a block, and when i activate the tool the second block goes where i click. How would i make the second block 'Look' at the first (the tool).
Report Abuse
TheDodosaurus is not online. TheDodosaurus
Joined: 02 Apr 2016
Total Posts: 9
07 Aug 2016 07:27 AM
SOLVED : Create a new CFrame for second block,
* Constructor CFrame.new(Vector3 ThePosition, Vector3 ToLookAt)
* My Code CFrame.new(CFrameClickedAt.p, TheToolBlock.CFrame.p)


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