function Rotate(objects,center,new) for i,object in pairs(objects) do if object.ClassName == "Part" then object.CFrame = new:toWorldSpace(center:toObjectSpace(object.CFrame)) end end end
When I call the function:
Rotate(slayer:GetChildren(),v,"0,0,100")
Output:
toObjectSpace is not a valid member of Part
Rotate(slayer:GetChildren(), v ,"0,0,100")
Is 'v' called "Part"?