Hi. Noob Here!!!
I made this simple script that makes a part grow in Y direction. the problem is i want it to only grow up in the y direction and not under the baseplate. can someone give me a hint so i can try to figure it out~~~~~~~~~~~~~~~~~
part = game.Workspace.Part
while true do
if part.Size.Y <5 == true then
part.Size = part.Size + Vector3.new(0,1,0)
wait(1)
else
end
end

5 comments
You could increase the size while also cframing it half the Y increment
part.CFrame = part.CFrame * CFrame.new(0,.5,0)
This code causes the part to move up instead
OK. now i understand what you mean and it works. but I have another script where I can make it smaller when I click it with the mouse. and when I do, it's lifted over the baseplate, so it doesn't work as intended
it works. thanks for the answer. just had to do the same with the other script just reversed.