How to accurately Scale this Part using Scripts

Here I have a part that I would like to scale when a “Snowball” touches it, I already have the Touch Sorted but the Part isn’t being scaled accurately

I noticed when doing an Experiment with said Part that the X Axis of the Part is Being reduced (Position) and the Z Axis is being increased ( Size )

How would I accurately scale the part?
Here is a video that may help!

to keep the starting edge stationary, the size of the part needs to increase 2x what the position increases by. Might help to visualize it as a radius vs diameter – the radius needs to increase 1:1 of the part’s increase in position.
an example with tweens:

local part = Instance.new("Part")
part.Parent = workspace
part.Anchored = true
part.Size = Vector3.new(1,1,1)
part.Position = Vector3.new(0,4,0)

game:GetService("TweenService"):Create(part, TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, -1, true), {Size = Vector3.new(1,3,1), Position = Vector3.new(0,5,0)}):Play()

notice to move one stud up, the size on that axis must increase 2 studs

Thank you so much! :))) I hope this helps Others

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.