I need help smoothly moving an entire model with CFrame sort of like a gate. Thanks.
for i=1, 50 do wait() for _,child in pairs(Parts) do origin[child] = Center:toObjectSpace(child.CFrame) end Center = CFrame.new(Center.CFrame.lookVector) for part,cf in pairs(origin) do part.CFrame = Center:toWorldSpace(cf) * CFrame.new(0, 1, 0) end end
I figured out how to do it, I had to use SetPrimaryPartCFrame.