ForceSky
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 2379 |
|
|
| 24 Jun 2013 03:22 PM |
So, could you do something like this:
part.CFrame.p = part.Position |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Jun 2013 03:33 PM |
I'm not sure but I think p is to assign the 3d CFrame of a 2d object. Say for example you want to get the 3d position of a mouse when you left click: script.Parent.Equipped:connect(function(mouse) mouse.Button1Down:connect(function() print(mouse.Hit.p) end) end) |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 24 Jun 2013 03:36 PM |
As it was said, before, you cannot set the .p property of CFrame. However..
part.CFrame = CFrame.new(part2.Position) |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2013 03:41 PM |
| Ah yeah, I didn't mean to say "assign" as it's a read only property like CFrame.x, CFrame.y, etc. P returns a Vector3 value, basically being the 3D position of a CFrame position. |
|
|
| Report Abuse |
|
|