How can I go about making a MoveTo() function for a part?

Hello, Im wondering how I can make a MoveTo() function that is basically supposed to work like the Humanoid:MoveTo() function, except its for parts and other instances that have position values.

I mean one of the methods that I know where you can use with models as well.

You can make a humanoid inside of your model and name one of your parts (inside of the model) to “HumanoidRootPart”. This will act as a head and can be moved. If you would like to move a whole model, try welding or unioning them together. Hope this helps :smiley:

2 Likes

It’s recommended to use tweens instead, since they have better performance and no humanoid physics nonsense.

That makes me feel very depressed considering that I just wrote all of this to try to calculate an accurate way to get one parts position to another’s…

Another possibility is to use AlignPosition. It’s the easiest way to move the parts.

1 Like

Yeah, it’s better, but he was asking about MoveTo(), so yeah