Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why is this model not translating?

So I have:

local modelCFrame = model:GetModelCFrame();
print(modelCFrame);
model:TranslateBy(Vector3.new(modelinfo[3]-modelCFrame.p));
print(model:GetModelCFrame());

which moves the model to modelinfo[3] (Vector3.new(0.07, 0.61, -22.29)) however I did prints around them and they both return the position as 0,0,0? Why is this not moving the model?

1 answer

If you just want to move the whole model just do

local Model = Workspace.Model

Model:MoveTo(Vector3.new(0.07, 0.61, -22.29))

This discussion is preserved as it was. New answers, comments, and votes are closed.