IK Snake and flock please help

I depserately need some help for an assigment due in in 2 two days

Basically, I’m trying to create a inverse kinematics predator i.e. snake/line of birds to chase a flock of mice.

So far using some available code i’ve managed to get a single predator to chase the flock, I’ve tried switching it to th ik snake but so far have only managed to get it on the stage without it moving and i think the head is moving by itself with out the body/tail connected and it’s not even showing any errors.

I’ve uploaded all my code. I also included the original IKSnake that i’m trying to modify into my code.

If anybody can help me, i will be forever greatful. :cry3: