Custom IK with Bones

I am trying to make a script that takes this:
image
and rotates its bones in a way so that it faces to look at the player and somewhat looks down at the player. I have tried scripting it, but due to me not understanding the math its not been working so well. Are there any library’s or something for this? Also there is the IkController but idk how to use it since when I tried it didnt do a thing.

Ive tried FABRIK

Also I manually created the effect I want:
image
Here it is looking at the player. Bones are going through the whole stem of the “Flower”

Any help would be great!