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: Get Position of Look Vector

Previous Thread :: Next Thread 
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
12 Jan 2015 10:11 AM
How would I get the position of five studs away from a part? lookVector.p doesn't work, so how would I do it?
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
12 Jan 2015 10:12 AM
part.CFrame.lookVector * 5

logic is logical
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
12 Jan 2015 10:14 AM
Yes, but I'm trying to get the position of the lookVector.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
12 Jan 2015 10:17 AM
(CFrameValue * CFrame.new(0, 0, -5)).p
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
12 Jan 2015 10:20 AM
Jarod, that works, but not in the direction I want. I want it to be directly five studs in front of the block, no matter the rotation. That's why I want to use lookVector.
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
12 Jan 2015 10:21 AM
Okay, I found a method. Thanks for the help.
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
12 Jan 2015 10:23 AM
Whoops, NVM
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
12 Jan 2015 10:26 AM
Devious' solution worked. I just didn't understand it when I first saw it.
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