Please help tween the whole model!

Hello and thank you for coming, here is my problem;

I am trying to rotate a model off their primary part but it is not seeming to work, only rotating the primary part.

-- Variables
local TweenService = game:GetService("TweenService")
local CollecitonService = game:GetService("CollectionService")

-- Doors
for _, door in CollecitonService:GetTagged("Door") do
	local insideDoor = door:FindFirstChild("InsideDoor")
	local doorHitBox = door:FindFirstChild("DoorHitBox")
	
	if doorHitBox and insideDoor then
		
		if insideDoor.Door:IsA("BasePart") then
			door.DoorHitBox.Touched:Connect(function(hit)
				if hit.Parent:FindFirstChild("Humanoid") then
					-- Opening
					TweenService:Create(insideDoor.PrimaryPart, TweenInfo.new(0.7, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {Origin = insideDoor.Hinge.CFrame * CFrame.Angles(0, math.rad(120), 0)}):Play()
					
				end
			end)
		end
	end
end

Thank you again for your help!

You have to have the primary part Welded to the other parts in order to have them be synced.

Thank for your response I will try that.

I am sorry but that did not work, however thank you for your response! :slight_smile:

Are all the parts in your model welded to the primary part? And are you using a Weld not WeldConstraint And are they unanchored? Forgot to tell you, unanchoring is necessary.

I apologize, but should they be anchored or unanchored? (Awesome avatar btw :face_holding_back_tears: )

Sorry, mb. Unanchored. Thanks, appreciate it.
Though I lost the account so I can’t log back in if I ever do get logged out of the devforum :sob:

Off, thanks for helping though!

1 Like

If you are still there, how did you get the red “coder” badge?

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