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

How do I CFrame with a model that has many parts in it?

So, I tried just making a model and CFraming it using a script, but it didn't work. Unioning it does the trick, but I'm pretty sure alot of us are aware of the "Union unsolvable" error. So Unioning isn't the most efficient way. If there's a way, can someone explain it to me? All help is appreciated!

3 comments

0

That page wasn't very descriptive. So, I use SetPrimaryPartCFrame, but where do I use that in the script? Do I type: part.SetPrimaryPartCFrame.CFrame. I'm confused. Sorry if I don't catch on.

1

First, set a primary part for the model, and then use the function. model:SetPrimaryPartCFrame(CFrameHere)

1 answer

If you are trying to make a model move with multiple parts, I prefer to use the :GetChildren() function.

for _,v in ipairs(script.Parent.Model:GetChildren()) do
			v.CFrame = v.CFrame + Vector3.new(0,0,0.039)
wait(0.05)
	end

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