I’m currently trying to make a game where over time where certain parts of a player’s model grow over time, and so far I’ve gotten it to a point when I resize it, it’ll resize everything relative to the player’s humanoid, but they don’t fully position correctly
function character:AdjustSize(size)
for part, base_size in pairs(self.base_sizes) do
if (self[part]) then
local center = self.torso.CFrame:ToWorldSpace(self.base_rootpos[part]).p --self[part].Position
local dist = self[part].Position - center
self[part].Size = base_size * size
--self.welds[part].Enabled = false
self[part].CFrame = CFrame.new(dist * size + center) * (self[part].CFrame - self[part].Position)
--[[local abc = self.torso.CFrame:ToWorldSpace(self.base_rootpos[part] * CFrame.new(size, size, size))
print(part, "\nOriginal", self.base_rootpos[part], "\nMultiplied", abc)
self[part].CFrame = abc
self[part].Anchored = true]]
--self.welds[part].Enabled = true
end
end
end
Starts as
And when I resize it, it ends up as