Character won't jump.

I have just build my script and everything should work fine. but for some reason my character won’t jump for some reason. Anyone know why?

the code is not right, lets go step by step, you have 2 lines that do the same but only one with the moveSpeed variable, so first copy the moveDirection = … line that has moveSpeed and leave it at the very first of the update. delete the other moveDirection = … lines so that there is only one at the top that you have just copied, then delete the { thats next to the else and the } thats behind controller.Move…