Wittiest
|
  |
| Joined: 02 Mar 2009 |
| Total Posts: 9665 |
|
|
| 23 Jul 2015 09:21 PM |
I would like to use scripting to accomplish the following:
A set of bricks make a path from point one to two. When a brick is spawned at the end of one side, it stays exactly on top of the path and follows it to the end of the path.
Would I need to use CFraming?
If I do use CFraming, how could I make this autonomous? I want multiple paths, and don't want to have to customize loops with certain cframe movements and rotations for every one. |
|
|
| Report Abuse |
|
|
ash877
|
  |
| Joined: 18 Feb 2008 |
| Total Posts: 5142 |
|
|
| 23 Jul 2015 09:24 PM |
brick.CFrame=oldBrick.CFrame*CFrame.new(brick.Size.X,0,0)
brick.Velocity=brick.CFrame.lookVector |
|
|
| Report Abuse |
|
|
Wittiest
|
  |
| Joined: 02 Mar 2009 |
| Total Posts: 9665 |
|
|
| 23 Jul 2015 09:47 PM |
| I still don't understand how to use this to make a script that will automatically move a brick in increments from point A to B if there are curves in the path |
|
|
| Report Abuse |
|
|