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

How do you move a Model with a script?

Asked by 10 years ago

Like when you have a bunch of parts in a model, the model doesn't have a position property, so you can't change it that way. I've seen it done in games. How would you do this?

1 answer

Log in to vote
0
Answered by
Merely 2122 Moderation Voter Community Moderator
10 years ago
local Model = game.Workspace.ModelName
Model:MoveTo(Vector3.new(300, 5, 840)

This is based on the PrimaryPart of the model. If you to move the model such that a certain part of the model will be at the given position, set Model.PrimaryPart to that part of the model.

Ad

Answer this question