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 move a model? [NEVERMIND]

I need help smoothly moving an entire model with CFrame sort of like a gate. Thanks.

	for i=1, 50 do
	wait()
	for _,child in pairs(Parts) do
		origin[child] = Center:toObjectSpace(child.CFrame) 
	end
	Center = CFrame.new(Center.CFrame.lookVector)
	for part,cf in pairs(origin) do
		part.CFrame = Center:toWorldSpace(cf) * CFrame.new(0, 1, 0)
	end 
	end

1 answer

I figured out how to do it, I had to use SetPrimaryPartCFrame.

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