jonman11
|
  |
| Joined: 30 Jan 2010 |
| Total Posts: 3386 |
|
|
| 22 Mar 2013 03:25 PM |
In a script, to change the cframe of an object, is this the line of code you use? --------------------------------- part = Script.Parent
part.Cframe.Vector3.new = ("0,0,0") ---------------------- If not, what is? |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 22 Mar 2013 03:27 PM |
part = script.Parent
part.CFrame = CFrame.new(0,0,0) |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2013 03:28 PM |
No. That is totally totally totally incorrect.
part = script.Parent part.CFrame = CFrame.new(0, 0, 0)
|
|
|
| Report Abuse |
|
|
koen500
|
  |
| Joined: 23 Feb 2011 |
| Total Posts: 2277 |
|
|
| 22 Mar 2013 03:29 PM |
| What property does change once c-framed? |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2013 03:30 PM |
| The 'Position' property is changed. |
|
|
| Report Abuse |
|
|
koen500
|
  |
| Joined: 23 Feb 2011 |
| Total Posts: 2277 |
|
| |
|
|
| 22 Mar 2013 03:38 PM |
| When you use CFrame.new and are not adding or multiplying a CFrame by another CFrame, you are actually setting the position (Vector3) of the object. CFrame.new is different because you can set objects inside other objects, rather than Vector3.new which places objects on top of other objects. CFrame.new is also different because it brings along objects that are welded to the object you are CFraming, Vector3 moves the part and detaches its welds. |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 22 Mar 2013 04:02 PM |
| http://www.youtube.com/watch?v=WgrBt5fQ5xg |
|
|
| Report Abuse |
|
|