I need help for a jumping script maybe a tutorial

There’s not really a good easy way to do this. The easiest way is to use a timer or to check the current height of your player. But both are not ideal in all situations.


A more advanced option is to use a raycast to see if it can detect ground or not.

i need help fixing the jumping mechanism i keep slowly falling and infinite jumping here is the code i used
Screenshot 2021-10-08 1.05.26 PM

It’s not something that can be fixed. You have to adjust the rigidbody values to get the best result. Please check my own topic about it.