Someone told me to do it like this:
script.Parent.Touched:connect(function()
script.Parent.Script.Disabled = true
for index,p in pairs(script.Parent.Parent.Truck:GetChildren()) do
for i = 1,200 do
p.Position = p.Position + Vector3.new(.4,0,0)
end
wait(.1)
end
end)
That didn't work. It teleported the blocks one by one. When I tried this before that, it moved them slowly, but still one by one.
script.Parent.Touched:connect(function()
script.Parent.Script.Disabled = true
for index,p in pairs(script.Parent.Parent.Truck:GetChildren()) do
for i = 1,200 do
p.Position = p.Position + Vector3.new(.4,0,0)
wait(.1)
end
end
end)

2 comments
Why not just use "MoveTo()"?
How would I do that?