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

how do I get a all a models children and move them together as one part?

Asked by 3 years ago

i'm trying to move a models children all together. how would I do this? this is what I have now

local head = game.Workspace.Head
local model = game.Workspace.Model:GetChildren()

for i = .1,1, .1 do
    model.CFrame = model.CFrame:Lerp(head.CFrame, i)
end


1 answer

Log in to vote
0
Answered by 3 years ago

You could set the PrimaryPart of the Model, then use SetPrimaryPartCFrame to move the entire Model altogether.

Ad

Answer this question