So what I wanna do is I basically want to lerp a door to shrink it’s size down/up smoothly and not do anything with his position or rotation but ONLY his size so I can make a smooth door closing/opening animation.
But iirc lerp only uses CFrame right? which only uses position and rotation so how would I do this if it is even possible?
I am new to lerping so sorry if the answer is obvious.
Just do part.Size:Lerp(goal, alpha)? I don’t understand what is the issue? Position and Size are both Vector3 values, and aren’t different that position can be interpolated but size can’t.
:Lerp just returns the value between 2 specified values (it also exists for CFrames and maybe some other classes). For example: (Vector3.new(0,0,0)):Lerp(Vector3.new(0,0,10),0.5) will return (0,0,5).
The math formula behind it is value0+(value1-value0)*increment.
Tween/lerp the position the same time as you are tweening the size, that way, it’ll look like it’s moving in, or you can simply just tween the position to go inside the wall and hide it there @Nerkonl