You can make a Keybind for this. This isn't very hard. The problem is that the player can change the key for triggering the Keybind.
I wouldn't make a keybind, I just wouldn't change the y value of the player motion vector (set it to playerMotionVector.y).
When ever I try to join any of my worlds on forge, the game freezes for 30 seconds then crashes and idk how to fix it. please help.
Crash report: https://paste-bin.xyz/21558