How to make clones constantly follow players?

This is what I have so far and it has an error that says;
Unable to cast value to Object

local clone = character:Clone()
clone.Parent = workspace

local cloneHumanoid = clone:WaitForChild("Humanoid")
local cloneRootPart = clone:WaitForChild("HumanoidRootPart")

while wait() do
	cloneHumanoid:MoveTo(cloneRootPart.Position, rootPart.Position)
end
1 Like

The second argument in Humanoid:MoveTo() is supposed to be an instance, not a Vector3.

1 Like