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: Vector3 Equivalent of CFrame * CFrame.new()? - Help

Previous Thread :: Next Thread 
xSpectrumWolfx is not online. xSpectrumWolfx
Joined: 30 Nov 2011
Total Posts: 2858
31 May 2014 10:10 PM
I'm trying to figure out how to get the Vector3 of a brick, 10 or so in front of it's front facing direction. How do I do that?

Report Abuse
Juniperr is not online. Juniperr
Joined: 12 Dec 2009
Total Posts: 6094
31 May 2014 10:28 PM
Brick = game.Workspace.BRICKYOUNEED
Brick1 = game.Workspace.BRICKYOUWANTTHEPOSITIONOF
Brick.CFrame = Brick1.CFrame * CFrame.new(Vector3.new(0,0,-10))
Report Abuse
xSpectrumWolfx is not online. xSpectrumWolfx
Joined: 30 Nov 2011
Total Posts: 2858
31 May 2014 10:32 PM
I guess I can try it.

local Distance = ((script.Parent.Torso.CFrame * CFrame.new(0,0,-20)).p - Vector3.new(LocalHumanoids[Max - (i-1)])).magnitude

This just didn't seem to work out.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Jun 2014 01:12 AM
Brick1.CFrame * Vector3.new(0,0,-10)
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