local h=false local i=TweenInfo.new(tweenTime,easingStyle,easingDirection,repeats,reverse,delayTime)local function a(h,a)local M=Instance.new("\067\070\114\097\109\101\086\097\108\117\101")M.Value=h:GetPrimaryPartCFrame();(M:GetPropertyChangedSignal("\086\097\108\117\101")):Connect(function()h:SetPrimaryPartCFrame(M.Value)end)local r=tweenService:Create(M,i,{Value=a})r:Play()r.Completed:Connect(function()M:Destroy()end)end wait(0)a(Model,goal1.CFrame)


local deb = false
local info = TweenInfo.new(tweenTime, easingStyle, easingDirection, repeats, reverse, delayTime)
local function tweenModel(model, CF)
	local CFrameValue = Instance.new("CFrameValue")
	CFrameValue.Value = model:GetPrimaryPartCFrame()

	CFrameValue:GetPropertyChangedSignal("Value"):Connect(function()
		model:SetPrimaryPartCFrame(CFrameValue.Value)
	end)
	
	local tween = tweenService:Create(CFrameValue, info, {Value = CF})
	tween:Play()
	
	tween.Completed:Connect(function()
		CFrameValue:Destroy()
	end)
end
wait(0)
tweenModel(Model, goal1.CFrame)
