I want the light gray block to be scaled from the front side (basepart:Resize()) to the end of the darker gray part. I’ve been searching hours for a way to do this, anyone got an idea?
The problem is, I don’t know how to find out how much I need to scale it so that the light gray part will be at the same as the dark gray one.
Not tween, scale, like instantly. The thing is i dont know how much to scale, I want to use Basepart:Resize(frontid, amount) but the thing is i dont know how to find the amount part of that which is the gap between the light gray part and end of dark gray part.
Why not take the Size of the dark Part and make your new Part that Size?
If you need it to be centered then you could place it at the same Position as the dark Part and then move it half the Size of the dark Part minus half the X Size of the light Part.
The entire model is a road, the dark part is the part you drive on, the model is CFramed to follow a bezier curve so I cannot resize the dark part. The light gray part is only part of the sidewalk, so I need to find a way to scale it to the end of the dark part.