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: lookVector

Previous Thread :: Next Thread 
Thunderx10 is not online. Thunderx10
Joined: 17 Jun 2009
Total Posts: 2316
25 Nov 2011 03:48 PM
How would I use lookVector to make a part face something else, then move towards it?
Report Abuse
sk8ercool456 is not online. sk8ercool456
Joined: 24 Jan 2008
Total Posts: 1846
25 Nov 2011 03:50 PM
You would use a little lookVector and a little something else:

partA.CFrame = CFrame.new(partA.Position, partB.Position)
for i = 1, 10 do
partA.CFrame = partA.Position + partA.CFrame.lookVector
end
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
25 Nov 2011 03:51 PM
Yeah sure I'll give you a scri - ...Yeah what he said.

Report Abuse
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
25 Nov 2011 03:53 PM
Part = Workspace.Part
PointAt = Workspace.Target

Part.CFrame = CFrame.new(Part.Position, PointAt.Position)

for i = 0, 1, 0.1 do
Part.CFrame = CFrame.new( (Part.Position * (1 - i)) + (PointAt.Position * i))
wait()
end
Report Abuse
Thunderx10 is not online. Thunderx10
Joined: 17 Jun 2009
Total Posts: 2316
25 Nov 2011 04:12 PM
Thanks TNS
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