So the problem is that if you time dashing while jumping in the exact moment the player gets the impulse of the air dash and the ground dash. That is what i thought but after printing once the actual code for the ground dash impulse runs and the code for the air dash impulse runs i've only gotten the print for the ground dash which confused me even more. (Please excuse my English as i am not a english speaker and my english is not that good. and if i didn't explain the problem well enough yet and you still want to help i will reexplain)
Here is the code (Please ignore the double confirming of if the debounce is false. i will fix that after i found a solution to my problem)
The Script is located in StarterCharacterScripts.
** You are now Level 6! **