Is this the correct way to move a model?
map2:MoveTo(Vector3.new(-822, 0, 438.9))
Is this the correct way to move a model?
map2:MoveTo(Vector3.new(-822, 0, 438.9))
Sure. MoveTo will move the “PrimaryPart” of the model if one is specified, so make sure one is specified to maintain control over your MoveTo s.
While this works, this method will respect collisions and increase the Y axis value until there are no collisions. Even if the area is suspected to be clear when you move the model, you cannot trust that there will be no exploiters occupying the space.
It’s safer to use Model:SetPrimaryPartCFrame(CFrame cframe) which will, as the name suggests, move the primary part to the CFrame passed in and then move the other parts in the model to their position relative to the primary part.
If you are moving the model a large number of times, the method above will slowly offset the parts. If you do this and want to avoid this behaviour, I recommend storing the CFrame offsets of the other parts from the primary part. You can then use the offsets to position the rest of the parts relative to the primary part after setting the CFrame of the primary part. Please note that this method of avoiding the undesired behaviour depends on the model being static.