Help For Moving a Model Then Tween It

im creating a box that you can open BUT the box is needing to get in the house

example:
robloxapp-20240120-0000489.wmv (1.5 MB)

here’s the scripts:

event

Events.BuyItem.OnServerEvent:Connect(function(Player,ModelName)
	local ExistingModel = ReplicatedStorage.Models:FindFirstChild(ModelName)
	
	if ExistingModel then
		ReplicatedStorage.BuyedItems:FindFirstChild(ModelName).Value = "Buyed"
		ReplicatedStorage["BuyedItem?"].Value = true
		wait(6)
		local Box = ReplicatedStorage.Box:Clone()
		local prompt = workspace.House.Doors.EntranceDoor.Knob.Attachment.Prompt
		prompt.Enabled = true
		Box.Name = ModelName
		Box.Parent = workspace.Boxes
		Box:PivotTo(House.PackageTween.StartCFrame.CFrame)
		local tween = TweenService:Create(Box.PrimaryPart, TweenInfo.new(2), {CFrame = House.PackageTween.PackageCFrame.CFrame})
		repeat until prompt.Triggered:Wait()
		prompt.Enabled = false
		wait(0.5)
		tween:Play()
	end
end)

opening:

function Open(prompt)
	prompt.Enabled = false
	local tween1 = TweenPart(lid1, box.OpenFolder.Tween1.CFrame, 0.5)
	local tween2 = TweenPart(lid2, box.OpenFolder.Tween2.CFrame, 0.5)
	box.Tape:Destroy()
	tween1:Play()
	tween2:Play()
	wait(1)
	if box.Name == "Garden" then
		workspace.House.Curtain:Destroy()
	end
	BuildingModule.New(box.Name, ItemAttachment)
	wait(3)
	for i, part in pairs(script.Parent:GetChildren()) do
		part:Destroy()
		wait(0.1)
	end
	box:Destroy()
	ReplicatedStorage["BuyedItem?"].Value = false
end

please help is been 5 months that i have this problem

The simplest way to tween a model is highlighted in the solution of this post: Tweening Models - #2 by colbert2677

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