|
| 05 Aug 2016 04:29 PM |
For example:
game.Workspace.Part1.CFrame = game.Workspace.Part2.CFrame
Now how would i set the rotation to (0,0,0) ?
|
|
|
| Report Abuse |
|
|
|
| 05 Aug 2016 04:30 PM |
CFrame.new() + game.Workspace.Part2.CFrame.p
Makes a new cframe with a position of the part but no rotation |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2016 04:38 PM |
So it would be like this?
game.Workspace.Part1.CFrame = CFrame.new() + game.Workspace.Part2.CFrame.p
Also would this work?
game.Workspace.Part1.CFrame.r = CFrame.new(0,0,0) |
|
|
| Report Abuse |
|
|
Nitro509
|
  |
| Joined: 27 Jun 2010 |
| Total Posts: 11170 |
|
|
| 05 Aug 2016 05:25 PM |
game.Workspace.Part1.Rotation = Vector3.new(x, y, z)
http://wiki.roblox.com/index.php?title=CFrame#Rotating_bricks
|
|
|
| Report Abuse |
|
|
|
| 05 Aug 2016 05:27 PM |
^ No
That will break joints + make it rotate weirdly + move it on top of anything touching it |
|
|
| Report Abuse |
|
|