private Position[] path = {             new Position(3254, 3421, 0), new Position(3256, 3428, 0), new Position(3264, 3428, 0),             new Position(3273, 3428, 0), new Position(3277, 3426, 0), new Position(3281, 3422, 0)     }; getWalking().walkPath(path); Explanation: The position array listed above will be defined at the top of your script (with the other variables) and getWalking().walkPath(path) will be defined wherever you want to call it (such as in a method, in your onLoop, etc.).