Tweening the Primary Part when clicked?

Hi, how can I make the Primary Part in a model Tween to a new position when the model is clicked on by a player? There is probably a very simple solution, but I am new to Tweening… thanks!

You would have to weld all the parts in the model (possibly, try without see what happens) then tween a CFrame value, calling :SetPrimaryPartCFrame() with a .Changed event, as you cannot directly do it.

Example:

local CFrameValue = Instance.new("CFrameValue")
local TweenService = game:GetService("TweenService")

local Duration = 0
local PositionToTweenTo = CFrame.new(0,0,0)

-- (Button click event)
TweenService:Create(CFrameValue, TweenInfo.new(Duration), {Value = PositionToTweenTo}):Play()

CFrameValue.Changed:Connect(function(newVal)
   Model:SetPrimaryPartCFrame(newVal)
end)