Is there a hook that runs the function when a player is falling? If not, how would I go about making code run when a player is falling?
You could use a key press function to check if a player is on the ground or use the PlayerFootstep function.
You alternative to using OnGround would be traces. Be warned that it could get a bit laggy if you run to many or are looping them.
I would start a trace if the player wan’t on the ground and then add instances where it should trace. Such as noclip, being dead, spectating.
[editline]26th July 2011[/editline]
Take a look at this link I think you might be able to use GM:HandlePlayerJumping