Let say I have a model with a few blocks within it, and I want to rotate that model through script. How would I go about that? (Just so ya'll know, I have checked any wiki and previous question for an answer and haven't got a clear one)
My attempt:
RotationDevice = game.Workspace.Model
function Rotate(objects,center,new)
for i,object in pairs(objects:GetChildren()) do
if object.ClassName == "Part" then
object.CFrame = new:toWorldSpace(center:toObjectSpace(object.CFrame))
end
end
end
for a,z in pairs (RotationDevice:GetChildren()) do
Rotate(RotationDevice, v.Position, CFrame.new(0,0,0))
end
Returns: toObjectSpace is not a valid member
Any help is appreciated

3 comments
Thanks! xD
You're welcome :D
How come everyone answers easy questions when I'm asleep!