How would I preserve the velocity of the player when they jump off the ground?

So to make this simple and short, lemme explain it:

When the player gets a velocity boost (say, explosion riding) and they land on the floor, I want the player to be able to jump on the ground to preserve their velocity, so they could keep going.

I haven’t really thought about how I would do this, but I do have a few guesses.

  • Perhaps I could check a StateChanged event for .Landed, and then record the previous velocity, then see if the player jumped within a certain timeframe. If so, then I could then re-apply the velocity
  • Writing my own movement system, but I don’t really feel like doing it since my framework is already so integrated into the default roblox movement
  • Setting the character’s friction to none, but I haven’t tested this out

Does anyone have any idea on how to do this? Thanks for reading

Sounds like bhopping as it preserves momentum, someone else has already done it as is in scripting check it out.

2 Likes

Oh wow I never even knew that! Thanks a lot matey : )