Is there a way to move entire model to a position?

So while building its a pain when I want to move a model to a certain place and have parts of it just stick out on the sides not making the sides smooth, is there a plugin which allows me to just entire the position and the model will just be translated there or anything?

3 Likes

If I read your question correctly. You are having problems moving a Model (with multiple parts inside).

In the command bar at the bottom where you are allow to type in code.
You can use it to issue commands using code to move the model in position.
Note: You have to type it all in one line.

So you can do something like this

local model = workspace.model;   model:MoveTo( Vector3.new( 0, 0, 0 ) );

That’ll move the entire model.

Sometimes I use a target part and set the cframe of the model to the target part like this:

workspace.model2move:SetPrimaryPartCFrame(workspace.TargetPart.CFrame)

This assumes you have a primary part set.

edit: the newer(preferred?) way to dot this now is with PivotTo

workspace.model2move:PivotTo(workspace.TargetPart.CFrame)
--or using another model's pivot:
workspace.model2move:PivotTo(workspace.TargetModel.WorldPivot)
6 Likes