New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
1

Is there a way to CFrame a model?

Asked by 6 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 1002 Moderation Voter
6 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
6 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 370 — 6y
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 5436 — 6y
Log in to vote
-1
Answered by 6 years ago

Yes There is a plugin!

0
What's the name of the plugin? dpark19285 370 — 6y

Answer this question