If I didn't add plus (+) on "vel.y += gravity * delta" it will just make my player seem like its teleporting up instead of jumping up.
func physicsprocess(delta):
vel.y += gravity * delta
if Input . is_action_pressed("jump") and is_on_floor():
vel.y -= jumpForce
vel = move_and_slide(vel, Vector2.UP)