# How to increase a model's size linearly?

Hi, I’m trying to make a function to increase a rigged model’s size, and technically I already have that but what I need is a linear size increase instead of a exponential one. (Addition instead of multiplication)

Here’s my current code, obviously it can already increase the size of the baseparts in a model but it fails to resize the joints correctly. Any help is appreciated!

``````local function IncreaseSize(model, sizeIncrease)
model.Humanoid.HipHeight += sizeIncrease

for _, Part in pairs(model:GetChildren()) do
if Part:IsA("BasePart") then
Part.Size += Vector3.new(sizeIncrease, sizeIncrease, sizeIncrease)

for _, Motor6D in pairs(Part:GetChildren()) do
if Motor6D:IsA("Motor6D") then
local C0PX, C0PY, C0PZ, C0R00, C0R01, C0R02, C0R10, C0R11, C0R12, C0R20, C0R21, C0R22 = Motor6D.C0:components()
local C1PX, C1PY, C1PZ, C1R00, C1R01, C1R02, C1R10, C1R11, C1R12, C1R20, C1R21, C1R22 = Motor6D.C1:components()

Motor6D.C0 =  CFrame.new((C0PX + sizeIncrease), (C0PY + sizeIncrease), (C0PZ + sizeIncrease), (C0R00 + sizeIncrease), (C0R01 + sizeIncrease), (C0R02 + sizeIncrease), (C0R10 + sizeIncrease), (C0R11 + sizeIncrease), (C0R12 + sizeIncrease), (C0R20 + sizeIncrease), (C0R21 + sizeIncrease), (C0R22 + sizeIncrease))
Motor6D.C1 =  CFrame.new((C1PX + sizeIncrease), (C1PY + sizeIncrease), (C1PZ + sizeIncrease), (C1R00 + sizeIncrease), (C1R01 + sizeIncrease), (C1R02 + sizeIncrease), (C1R10 + sizeIncrease), (C1R11 + sizeIncrease), (C1R12 + sizeIncrease), (C1R20 + sizeIncrease), (C1R21 + sizeIncrease), (C1R22 + sizeIncrease))
end
end
end
end
end
``````