Unexpected token and expected eof errors in tutorial script space shooter

Hi, working my way through the tutorial and I’m getting loads of errors from the tutorial script (I’ve tried copy pasting from the tutorial site and still getting the same errors) It was complaining of several missing semicolons which I have added in (I assume this was the correct thing to do and has made the errors go away) but these 2 errors persist:
(7,12): BCE0043: unexpected token: float.
and
(7,18):BCE0044: expecting EOF, found ‘xmin’

here is my code:

using; UnityEngine;
using; System.Collections;

[System.Serializable];
public class Boundary
{
    public float xMin, xMax, zMin, zMax;
}

public class PlayerController : MonoBehaviour
{
    public float speed;
    public float tilt;
    public Boundary boundary;

    void FixedUpdate ()
    {
        float moveHorizontal = Input.GetAxis ("Horizontal");
        float moveVertical = Input.GetAxis ("Vertical");

        Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);
        rigidbody.velocity = movement * speed;

        rigidbody.position = new Vector3 
        (
            Mathf.Clamp (rigidbody.position.x, boundary.xMin, boundary.xMax), 
            0.0f, 
            Mathf.Clamp (rigidbody.position.z, boundary.zMin, boundary.zMax)
        );

        rigidbody.rotation = Quaternion.Euler (0.0f, 0.0f, rigidbody.velocity.x * -tilt);
    }
}

any help would be greatly appreciated.

ohmyfreakinggod, I’ve just realised that it’s a .js extension :confused: I am officially an idiot! Thank you for suggesting that!! Can’t believe that didn’t occur to me :confused: It seems to default as a .js in unity when i create a new script, how do I change that?