[Script] How to Make The Character NOT jump while sprinting

[Script] How to Make The Character NOT jump while sprinting
I would like to make a game, where you cant jump while u are sprinting?
Do you know guys any script that works for this?
Thank you1:smile:

It should be like:

var isSprinting:boolean = false;
var jumping:boolean = true

if ( isSprinting == true){

jumping = false;
}

It depends on your character controler script.