You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? I want to resize a meshpart while keeping it’s original position in a tween.
-
What is the issue? Include screenshots / videos if possible!
The issue is, the resize occurs from the center of the meshpart. I need it to resize from the bottom of the part towards the top, but it’s not a y axis only change.
Example: Starting size = 0, 0, 0, end size = 8, 30, 4 -
What solutions have you tried so far?
I looked at a bunch of posts in the developer fourm and found a formula for resizing 1 axis and tried to adapt to all size change: primaryModel.CFrame * CFrame.new((actualModelSize.X - primaryModel.Size.X)/2, (actualModelSize.Y - primaryModel.Size.Y)/2, (actualModelSize.Z - primaryModel.Size.Z)/2)
But this doesn’t work
local sizeTweenInfo = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local sizeTween = TweenService:Create(primaryModel, sizeTweenInfo, {Size = actualModelSize, CFrame = primaryModel.CFrame * CFrame.new((actualModelSize.X - primaryModel.Size.X)/2, (actualModelSize.Y - primaryModel.Size.Y)/2, (actualModelSize.Z - primaryModel.Size.Z)/2)})
sizeTween:Play()