I’m trying to Tween parts all together, but every time the tween plays, I get this error.
Code:
local Children = script.Parent.Model:GetChildren()
local TS = game:GetService("TweenService")
while true do
for _, Part in pairs(Children) do
if Part:IsA("Part") then
local GO = Vector3.new(514,Part.Position.Y,Part.Position.Z)
print("aaa")
local TI = TweenInfo.new(20)
local TW = TS:Create(Part,TI,GO)
TW:Play()
end
end
wait(19)
for _, Part in pairs(Children) do
Part.Position = Part.Position + Vector3.new(-514,0,0)
end
end
I’m not sure what’s causing the error, I’m pretty sure I wrote everything correctly.