Double jump problem C#

Hi, I got this problem where I don’t want a double jump in my script. Can anyone help me?

Yes, need to see the code. But you need to tell the game the player is already jumping. Make a bool “Jumping” and have that as a condition for him to be able to jump

bool Jumping;

if (Input.GetKeyDown(KeyCode.Space)&&Jumping==false){
			//jump code here
Jumping =true;
//then set Jumping = false when player his on ground

It’s hard to help without seeing your code, but it sounds like you need to store a variable that tells whether the player is on the ground, and then have him/her only jump if this variable is true.