In that case, what you can do is take the current position of the player and then wait for some time for example 3 seconds and then subtract the current position from the last position.
So now imagine some player’s character is falling from above so if his last position was
(5,20,5) and now his current position is (5,10,5) you can understand his lead is affecting the Y-axis meaning he is falling down.
Hope you understand what is happening
it will be way more efficient if we can wait the lowest amount of time possible.