3

# How to rotate a model? [closed]

MunimR 125
8 years ago

How to rotate a model, right now checking all children of a model and rotating each part doesn't work since if the part is already facing a different direction then it will awkwardly rotate it against the other parts. Any solutions?

### Locked by JesseSong

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

17
Quenty 226
8 years ago
local function TransformModel(objects, center, new)
-- Transforms a group of bricks (objects) relative to center to the new CFrame (new).

for _,object in pairs(objects) do
-- if object:IsA("BasePart") then
object.CFrame = new:toWorldSpace(center:toObjectSpace(object.CFrame))
-- end
end
end


From qCFrame

0
I don't understand why this works. Can someone help me? theevanegps2 15 — 5y