Model:MoveTo not working, no error

	local b = a:GetExtentsSize().Y / 2
	local c = workspace:FindFirstChild(play)
	local d = Vector3.new(c.Position)
	a:MoveTo(d)

This is the code that won’t work. More specifically, line 4. This isn’t the whole script, but only the sample that doesn’t work, as C is the place I want to move the model (a) to.

But it doesn’t do anything - it doesn’t even throw an error.

Why is this?

2 Likes

Does your model have a PrimaryPart?

Yes. The model has the PrimaryPart set.

I have found the issue while I was waiting for a reply. The issue is that I was making a Vector3 using a Vector3 (position), and using the Position directly works.

2 Likes

Wouldn’t it be a:PivotTo(d)?

Edit: If you’re using position you can easily make Position into CFrame by saying CFrame.new(Vector.X, Vector.Y, Vector.Z)

I am pretty sure instead of using

Vector3.new(c.Position)

you should use…

CFrame.new(c.Position)