Determining 2D Velocity in a specific direction?

I’m trying to get a script to Destroy(this) if it’s not moving at speed along the x coordinate.

If you are using Rigidbody you can watch the velocity in the x axis

If you are not, you can check the position in the last frame or second and then compare it to the current position.