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

Is it possible to Insert a model using InsertService and place it on a specific position?

Asked by 10 years ago

Some models I've noticed go haywire when I upload them, causing them to spawn not in a grid pattern. And also the fact that building off a current model is 10x easier if it's centered at 0,1,0. Anyways I was wondering if it was possible to insert a model using the InsertService and place it at a specific position (0,1,0) I already know how to insert a model with the InsertService >_>

0
If it's a model just use :MoveTo() EzraNehemiah_TF2 3552 — 10y
0
@Lord Does that work for the whole thing? I thought that was for a specific part ConnorVIII 448 — 10y
0
That didn't work, instead I just added two parts that spanned the X coordinate and the Z coordinate of the object to the model, then I was able to set 0,1,0 and it set the model to that spot. Thanks for your help though guys Ghost4Man 25 — 10y
0
I believe it's quite possible. Just make a recursive function to set the PrimaryPart of the model loaded. Then use :MoveTo() or :SetPrimaryPartCFrame(). Redbullusa 1580 — 10y

1 answer

Log in to vote
0
Answered by
yoshiegg6 176
9 years ago
model = however you get to the model

model:MoveTo(0,1,0)
Ad

Answer this question