Multiple 3d instances of trees with script on each

Godot Version

` 4.3

Question

I want to make a scene with thousands of trees, with a chop down system (that i already did), but i don’t know how to spread those trees without compromising too much performance, and mesh instances doesn’t work for me because I need a script in tree

I think multimesh is the only way to get thousands of anything.

but how i could attach a script to the tree then?

You would probably attach the script to the multimesh (I’m speculating).