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

How Would I Go About Resizing a Model Using a Script?

I have tried to use something like this, but it doesn't seem to work. Any thoughts?

function Resize(Model, Scale)
	for k,v in next,Model:children() do
		if v:IsA'BasePart' then
			local Vcf = v.CFrame
			local _,_,_,c0,c1,c2,c3,c4,c5,c6,c7,c8 = Vcf:components()
			v.Size = v.Size * Scale
			v.CFrame = CFrame.new(Vcf.p * Scale) * CFrame.new(0, 0, 0, c0, c1, c2, c3, c4, c5, c6, c7, c8)
		end
	end
end

Resize(ring, Vector3.new(.5, 0, 0))

1 answer

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