How to make this model rotate with code?

I’ve tried CFrame, but it only seems to move the model itself. When I tried ViewportModel.CFrame = CFrame.Angles(0,180,0) it said the CFrame wasn’t a valid member? The ViewportModel is a group of grouped parts btw

For models: Use the Pivot of the Model. with PivotTo() (To move the Model and Its pivot) and GetPivot() if you need its current Pivot CFrame

If your using a model instance… Whats you current set up up in the explorer? as well as more info in what your trying to do

You can set the model primary part (You have to set it tho)
model.PrimaryPart.CFrame = CFrame.Angles() --this will be your stuff

Sorry for the late response, but here’s a screenshot (and i’m already using PivotTo(), but I had to set it to 0,0,0 for it to show up on the viewportframe)
viewport

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.