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

Is there a way to CFrame a model?

Sup' guys! After days of experimenting my latest projects, I have kept returning to the same question: How would I CFrame, or move, Models instead of single Parts? I've grown tired of trying to do it with my own available skillz, so I ask you helpful scripters out there to help me solve this question. Please teach me how it's done; I would highly appreciate it!

3 answers

✓ Accepted answer

If you're looking for a script, you would use a for loop.

model = game.Workspace.MODELNAME --Or wherever the Model is.

for i,v in pairs(model:GetChildren()) do
if v:IsA("BasePart") then
v.CFrame = CFrame.new(0,0,0) --Or whatever the position is.
end
end

Hey there. I think I know what you're talking about. All you need to do is use the :MoveTo method. I've linked you to the wiki page here

Model:MoveTo(Vector3.new(0, 0, 0))

2 comments

0

Thanks you guys! This really helped a lot!

0

However, this doesn't support rotation. Try this model of mine for Model CFraming that supports rotation: http://www.roblox.com/--item?id=132678373

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