:I'm making a script that lets you move models in-game, but I don't know how to do this without moving each part individually. Most of my structures are pretty detailed and can use dozens of parts, so I'm not too keen on going that route. Is there any way to move the entire model through script?
workspace.Model:MoveTo(Vector3.new(x,y,z))
but again if the model is inside of something it will raise the Y value (go upward) until nothing is in the way. When moving a model, it uses the PrimaryPart chosen. If no primary part is chosen it will use the root part of the model.
If you dont want to worry about that, you can do this
local model = game.Workspace.Model model:SetPrimaryPartCFrame(CFrame.new(5,5,5)) -- 5,5,5 can be any position you want
If you want to move it just do this. Pretend the model is in workspace and named "Model"
workspace.Model:MoveTo(12,42,14) -- Just put in the cordinates
The best way to go at this would be to use :SetPrimaryPartCFrame
Of course, you'll need to make sure that the model has a primary part set.
An example:
local model = game.Workspace.Part local part = game.Workspace.MovePart model:SetPrimaryPartCFrame(movepart.Position)