How to attach a spline to a mesh and scale the mesh?

So, recently I have been looking into Procedural building generators and have been trying to make my own from scratch. A lot of these procedural buildings online are made with splines. I have added a spline to my instance mesh, but I’m stuck on how to re-size the mesh by using the spline?