Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Does anybody know how to copy a model to a specific place?

Asked by 5 years ago

I have done this before with just a part but it is clearly harder with a whole model. On top of that I am using a cone mesh I imported from Blender so I cannot create a union.

0
MoveTo is deprecated and can be removed at any time. TehEp1cFace 59 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago

You can do so by moving it's primary part. Make an invisible cube surrounding the model and make that it's primary part. You'd do that by going into the models properties, clicking primaryPart and then clicking on the invisible brick.

Once you do that, you'd say:

game.Workspace.ModelName:SetPrimaryPartCFrame(Cframe.New(0,0,0))

This code will mode the model to the middle of the baseplate. If you want to move it to a part's Cframe you can also do:

game.Workspace.ModelName:SetPrimaryPartCFrame(game.Workspace.Part.CFrame))
0
If I put a while loop around that would it create multiple instances of the model? spoonses 7 — 5y
0
I tested that script and it worked to move the model, but I need to make a copy of the model and then move the copy spoonses 7 — 5y
0
then instead of the model set the primary part cframe of the copy. you may or may not have to re specify the primary part again TehEp1cFace 59 — 5y
Ad

Answer this question