Aeroplane script

does anyone know where I can find a tutorial for an aeroplane script, im new to this, but I imagine it wouldent be to hard, all you would have to do is for example get the left button to rotate the units local x y and z left and so on, and forward moves you along your z axis. please help

You will need to learn more of unityscript.

Take a look into physics.addforce.

Here’s a very basic script I just wrote to get you started. This one doesn’t use unity’s physics capabilities but if you haven’t learned unityscript yet I would start off with this. I highly recommend you go through unity’s manuals and script references to help you.

var rollSpeed = 25;
var pitchSpeed = 25;
var throttle = 5;

function Update () {

transform.Translate(Vector3.forward * Time.deltaTime * throttle);

	if (Input.GetKey("up")) {
		transform.Rotate(Vector3.right * pitchSpeed * Time.deltaTime);	
	}

	if (Input.GetKey("down")) {
		transform.Rotate(Vector3.right * -pitchSpeed * Time.deltaTime);	
	}
	
	if (Input.GetKey("right")) {
		transform.Rotate(Vector3.forward * -rollSpeed * Time.deltaTime);	
	}

	if (Input.GetKey("left")) {
		transform.Rotate(Vector3.forward * rollSpeed * Time.deltaTime);	
	}
}

Theres a flight game starter kit (or starting assets) somewhere around the forums - Should be able to find it if you search:)