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

How to make a whole model get bigger proportionately?

Ive tried to use a script which makes makes each part bigger, but the whole thing swells in one place. Is there a way to make the whole model get bigger? Help please!

1 comment

0

Could you possibly union it? Union would always shrink and grow proportionally.

1 answer

✓ Accepted answer

Not my script but a little modified.

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

wait(5)
Resize(script.Parent, 2) -- First parameter is the model, the second is the scale. So in this case I made it twice as big.

3 comments

0

:)

0

thx

0

Works perfectly, except the model moved but i can fix that easily

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