`local tweenService = game:GetService("TweenService") local info = TweenInfo.new()
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
tweenModel(script.Parent, game.Workspace.To.CFrame)`
It brings it to the location but doesn't tween to it.

4 comments
im confused as to why this isnt a comment xd
IKR Wow you joined Roblox a while ago, 7 years ago in 2013
I tried everything. I’m semi-new to scripting, so I was wondering if anyone can help me like with an example that can work in this situation that I want for it to happen.
WOW YOU joined Roblox a while ago, 4 years ago in 2016