Impulse limit (jumping)

Hi everyone, I need a script to create an impulse limit, for the player don’t jump infinitely.
If the player is in air and the space key is pressed, then the player can’t add more impulse, because the player is in air. Did you understand what I mean?

Hi @DudeDay012,

Check the First Person controller on the engine repository how it does it, it casts a ray downwards to see if there is a surface that allows for jumping: