I am not sure, but I think there is a method Code (Text): player.isWalking(); Or player.isRunning(); maybe use something like that