Is there a parsing error

I van t find it but it says it is on line 32 I think

using UnityEngine;
using System.Collections;

public class Playerstuff : MonoBehaviour {
	private Transform gameObject;

	public int playerSpeed = 20;

	// Use this for initialization
	void Start () {
		gameObject = transform;

		//spawn point stuff

		gameObject.position = new Vector3(3,0,0);
	}
	
	// Update is called once per frame
	void Update () {

		//Player movement

		gameObject.Translate(Vector3.right * Input.GetAxis ("Horizontal"));

		//player "portal"
		if (gameObject.position.x >=10) {
			gameObject.position = new Vector3(-10, gameObject.position.y, gameObject.position.z); 
	
	}
}

Yes, there is a parsing error. You don’t have a line 32, so the compiler has got confused. If you search for the error number on Google, you’ll get loads of hits on this site which will help you out.

Actually, I don’t see anything syntactically wrong with your code. If I had to guess, I’d say it was because you have tried to declare a variable called “gameObject”, which is a keyword already declared by Unity (confusingly, you also declare that variable to be a Transform rather than a GameObject…?).

If you want to create your own variable, call it something else. If you want to use the GameObject to which this script is attached, use gameObject, but don’t explicitly declare it.

If you use an editor with brace-matching ability, you’ll see that you’re (at least) missing the final closing brace for the class. Just add one more line with a closing brace → “}”.

Also, if you fix your code alignment, these issues are much easier to see.