Issues w/ Tweening the Orientation of a Model

I’m trying to make a rotating preview of an item using ViewportFrames. When I tween the model, the PrimaryPart rotates perfectly fine but the other objects stay put. I used this guide.

while true do
	local tweeninfo = TweenInfo.new(1,Enum.EasingStyle.Linear)
	local tween = TS:Create(root, tweeninfo, {
		CFrame = root.CFrame * CFrame.Angles(0, math.rad(180), 0)
	})
	tween:Play()
	wait(1)
end

EDIT: I realized that ViewportFrame doesn’t have any physics. I will try to find another method other than welding the objects.

SOLUTION: I used a WorldModel, giving physics to the model.

If the PrimaryPart rotate as your desire but not the entire model then consider to “WeldConstraint” each part of the model to the PrimaryPart ! Make sure to unanchor the parts except for the PrimaryPart.

1 Like

I don’t know how to close a thread, so I’ll just mark this as the solution.

Welds are part of the physics pipeline so that won’t work in a ViewportFrame. Instead of using a WorldModel you could change the CFrame of the entire model via pivots.

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