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

Moving a model?

Asked by
Mystdar 352 Moderation Voter
10 years ago

If I had a model and there was a part in the model called 'binder', which the whole model is welded to. To move it would I be able to move the model by applying BodyVelocity to binder or would I have to move all of them separately? Sorry this isn't script related, and if it breaks regulations

0
Yes that would work, because you're moving a part that all the other ones are attached to. BlackJPI 2658 — 10y

1 answer

Log in to vote
0
Answered by
0ea 0
10 years ago

g = game.Workspace.ModelNameHere:GetChildren() for I = 1,#g do if g[I].ClassName == "Part" then g[I[.Position = Vector3.new(yourpositionhere) end end this is useful however you may need to unpack your models in order for it to work

0
This looks like a complicated form of ":TranslateBy". That's still inefficient when "model.PrimaryPart = model.part" and ":SetPrimaryPartCFrame" exist, though. RoboFrog 400 — 10y
Ad

Answer this question