local Ship = script.Parent
local Nodes = workspace.ShipNodes
local ShipNodes = workspace.ShipNodes:GetChildren()
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.Value, info, {Value = CF})
tween:Play()
tween.Completed:Connect(function()
CFrameValue:Destroy()
end)
end
while wait() do
for i = 1, #ShipNodes do
tweenModel(Ship, Nodes:FindFirstChild("Node" .. i))
wait()
end
end
**** 22:36:59.450 - TweenService:Create property named 'Value' cannot be tweened due to type mismatch (property is a 'CoordinateFrame', but given type is 'Instance') 22:36:59.451 - Stack Begin 22:36:59.452 - Script 'Workspace.Ship.Script', Line 17 - local tweenModel 22:36:59.452 - Script 'Workspace.Ship.Script', Line 28 22:36:59.452 - Stack End****

2 comments
Line 17: local tween = tweenService:Create(CFrameValue, info, {Value = CF})
Line 28: tweenModel(Ship, Nodes:FindFirstChild("Node" .. i))