doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 01 Jul 2013 09:29 PM |
| How do I rotate a full model? |
|
|
| Report Abuse |
|
|
| |
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 01 Jul 2013 09:42 PM |
| How can I use that to set the model CFrame? |
|
|
| Report Abuse |
|
|
|
| 01 Jul 2013 09:46 PM |
Oh... I know there's a way, but i'm not totally sure... |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
| |
|
misgav11
|
  |
| Joined: 21 Apr 2011 |
| Total Posts: 3418 |
|
|
| 01 Jul 2013 10:13 PM |
use Anaminus script..
function RelativeTransform(center,objects,trans) -- (cframe, table, function) local new = trans(center) for _,object in pairs(objects) do object.CFrame = new:toWorldSpace(center:toObjectSpace(object.CFrame)) end end
local model = workspace.Model
RelativeTransform( model:GetModelCFrame(), -- use the model's center model:GetChildren(), -- use the model's children function(center) -- rotate the center by 90 degrees return center * CFrame.Angles(0,90),0) end) |
|
|
| Report Abuse |
|
|