AI Soccer game weird movement

Ok so I don’t know how to tell much but it working fine except:


As you can see it loops and just ended up being like this forever. Like no one ever play soccer like this right?
Code:

I’ve been fixing a lot by adding a debounce. Making a velocity bigger but it seems to not working.
Also the ball positionioning is controlled by a script in a ball
Code:

It just like a AI doesnt pass a ball but it trying to pass because it prints out “Sending players!”

Please help!

1 Like

It sounds like they have no objective. (Objective eg. scoring, passing the ball) Thus causing them to follow each other. In order for us to help you better could you show the definition of the function called ShootBall?