nvm i found the problem out, i had a variable named Animation Index and it was a Byte when it was supposed to be a integer, then i had to return the value to the green calculate direction function and return the value of a set direction and speed, the point is it was the Byte that was causing it to bug.