How do I scale instances from big to small from top to bottom without using index?

I have this project of making a tree in geometry nodes. Of course, there were problems along the way since I’m trying to learn geometry nodes with this project. I solved some of the problems. But now I need to scale my branches. For some reason when I use the index node, the instance just disappears. If anyone can help, I will be very grateful. I will try to post my .blend file here. The tree model is named Sakura.


Warning: blender gets very buggy when you start using Main_Branch and Branch as instances.

This thread is full of good resources:

Basically you’re using the Factor from the 1st curve to control the scale of instances:

Good luck.

Thank you very much for the advice, it worked. I also needed to change Blender version from 3.1.2 to 3.3.1, but it thankfully didn’t break anything. And also thank you for the thread, I’ll be going on it a lot I think.