Im trying to make my model go to point but.. .its going crazy when tween is done

im trying to make my model go to point but… .its going crazy when tween is done

local tweenService = game:GetService("TweenService")

local doorModel = script.Parent



local canOpen = true
local open = false
local origCFrame = doorModel.PrimaryPart.CFrame


local uptime = 12
local downtime = 12 
local waitTime = 0.29 


doorModel.PrimaryPart.Transparency = 1

local function tweenModel(model, CF, info)
	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()
	
	
end


tweenModel(doorModel, workspace.ADSSADSAD.CFrame, TweenInfo.new(downtime))

(its from toolbox i know, i just couldnt do it myselfs earlier)
so… when the tween is done model is fully unanchors and the point knockbacks the model 10000000 kilometers away. its also works the same with just changing this
tweenModel(doorModel, workspace.ADSSADSAD.CFrame, TweenInfo.new(downtime))
to this
tweenModel(doorModel, CFrame.new(15,15,15), TweenInfo.new(downtime))
So i dont know how to fix it. Any help? (Also its airship, and the primary part already set)

Guys i solved this.
So if you are using this types of script, and using at the same time QperfectionWeld DONT USE IT. Its automaticly unanchor model. Just weld model by yourself!

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