How to detect if a players character is moving/falling

Hello,

So I’m trying to make a fishing minigame for my game, which includes a fishing rod tool, everything works but I want the tool only to be activatable when the player is still, I’ve tried using MoveDirection and Velocity properties of the hrp but I’m not sure how to compensate with gravity while using Velocity and MoveDirection doesn’t take into consideration if the player is jumping. Also tried using the humanoid state properties but as I’m dealing with a server script due to specifics ( and no I’m unable to do some of the stuff I do in this script in a local script ) and those don’t work half the time.
If anyone has ever run into this issue and could help me figure out .Velocity that’d be great and much appreciated.

Thanks.

there is a humanoid state called frefalling state you can try this maybe

Like I said, the humanoid states haven’t been that reliable on a server script for me so far, thanks for the quick reply tho

but why in server script? can you just check the humanoid state in a local script then fire a remote to stop the fishing rod

if part.Velocity == Vector3.new(0,0,0) worked for me if anyone runs into the problem, I didn’t look through the API hard enough lol, noticed Velocity is a Vector3 value

Pretty sure .Velocity is deprecated and shouldn’t be used anymore. You can just use Humanoid:GetState() for the current action