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 10 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
10 years ago

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
Ad
Log in to vote
1
Answered by
Moryo7 15
10 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

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

Yes There is a plugin!

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

Answer this question