Cancel tween when player moves

I am trying to tween a pet up and down when the player is stationary. I don’t know how I could detect when the player starts moving to then stop the tween. I’ve looked around for some other people having the same problem but haven’t found anything.

Or wait to play the tween when the pet has stopped moving on the x and z axis.

¡Hi! you may use this

1 Like

Is there any way I can get the current speed of the player? (or is it in that link and I just don’t see it)

It’s stored in the character’s humanoid

Character.Humanoid.WalkSpeed