MonoDevelop File Type?

Hello. I have a huge problem with MonoDevelop. It dosen’t work, or at least, I don’t know how to make It work. There are like, a trillion different script types.
So I want to make a game where you can jump, and the script is supposedly

var speed : float = 3.0;
var gravity : float = 20.0;
var rotateSpeed : float = 3.0;
var jumpSpeed : float = 8.0;
private var moveDirection : Vector3 = Vector3.zero;
 
function Update () {
var controller : CharacterController = GetComponent(CharacterController);
var forward : Vector3 = transform.TransformDirection(Vector3.left);
var curSpeed : float = speed * Input.GetAxis ("Vertical");transform.Rotate(0,0,Input.GetAxis ("Horizontal") * rotateSpeed);
 
transform.Rotate(0,0,Input.GetAxis ("Unhorizontal") * -rotateSpeed);
 
controller.SimpleMove(forward * curSpeed);
 
if (Input.GetButton ("Jump")) 
if(controller.isGrounded){ 
moveDirection.y= jumpSpeed;
 
}
 
moveDirection.y -= gravity * Time.deltaTime;
 
controller.Move(moveDirection * Time.deltaTime);
}

I don’t know what type of file in MonoDevelop I should write it in, and in most cases, it writes something like this when I make a new Document :
using System;

namespace Jump
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			Console.WriteLine ("Hello World!");
		}
	}
}

What type of file am I supposed to use? And where on the file am I supposed to type it? Please help!

  • In the Project tab IN UNITY, right click, Create → Javascript.
  • Name the new file and double-click to open it in MonoDevelop.
  • Paste the code you’ve got above.
  • Save and return to Unity.
  • Please follow some tutorials. This is really basic stuff, and there are a ton of resources out there.