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

Is there a way to CFrame a model?

Asked by 11 years ago

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

Log in to vote
0
Answered by
Discern 1007 Moderation Voter
11 years ago

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

1model = game.Workspace.MODELNAME --Or wherever the Model is.
2 
3for i,v in pairs(model:GetChildren()) do
4if v:IsA("BasePart") then
5v.CFrame = CFrame.new(0,0,0) --Or whatever the position is.
6end
7end
Ad
Log in to vote
1
Answered by
Moryo7 15
11 years ago

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

1Model:MoveTo(Vector3.new(0, 0, 0))
0
Thanks you guys! This really helped a lot! dpark19285 375 — 11y
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 adark 5487 — 11y
Log in to vote
-1
Answered by 11 years ago

Yes There is a plugin!

0
What's the name of the plugin? dpark19285 375 — 11y

Answer this question