How to move a GetChildren clone?

OK, I have a problem regarding the position of a GetChildren clone, I know I can use (item.Position = script.Parent.Position), but it doesn’t give me the same impression as (Clone:MoveTo(script.Parent.Position)) The MoveTo thing gives me an error and that’s why I want to know how to do it.

local FolderMaterial = ReplicatedStorage:WaitForChild("Materiales"):WaitForChild("Cargarmateria")

for index, MaterialDesc  in ipairs(FolderMaterial:GetChildren()) do
if MaterialDesc:IsA("BasePart") then
local Clone = MaterialDesc:Clone()
Clone.Parent  = workspace.SistemaDeTalado
Clone:MoveTo(script.Parent.Position)
end
end
1 Like

Try This!

local FolderMaterial = ReplicatedStorage:WaitForChild("Materiales"):WaitForChild("Cargarmateria")

for index, MaterialDesc  in ipairs(FolderMaterial:GetChildren()) do
if MaterialDesc:IsA("BasePart") then
local Clone = MaterialDesc:Clone()
          Clone.Parent  = workspace.SistemaDeTalado
          Clone.Position = Vector3.new(script.Parent.Position)
    end
end

It works better without the vector3.new. the problem is that with the MoveTo it moved slightly higher and with the (Clone.Position = script.Parent.Position) it moves at the same level as the original position and I want it to be like the MoveTo

1 Like

Try MoveTo: Vector3.new(script.Parent.Position)